/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PanelPrincipal.java
 *
 * Created on 08/08/2009, 10:43:52 PM
 */

package com.jomijushi.fid.interfaz;

import Reportes.Reportes;
import com.jomijushi.fid.dominio.*;
import com.jomijushi.fid.servicios.*;
/*
import com.jomijushi.fid.dominio.FidCliente;
import com.jomijushi.fid.dominio.FidProveedor;
import com.jomijushi.fid.dominio.FidTrabajador;
import com.jomijushi.fid.servicios.ClienteImplementsService;
import com.jomijushi.fid.servicios.ClienteInterfazService;
import com.jomijushi.fid.servicios.ProveedorImplementsService;
import com.jomijushi.fid.servicios.ProveedorInterfazService;
import com.jomijushi.fid.servicios.TrabajadorImplementsService;
import com.jomijushi.fid.servicios.TrabajadorInterfazService;
 * */
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.ArrayList;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.swing.UIManager;
import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.table.TableColumnModel;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.JOptionPane;
import com.jomijushi.fid.util.Fecha;
/**
 * Interfaz grafica heredada de JFrame donde se visualiza el programa y sus funcionalidades.
 * @author Miguel, Pedro
 */
public class PanelPrincipal extends javax.swing.JFrame {

    /** Creates new form PanelPrincipal */
    public static EntityManagerFactory emf;

    
    // Datos Trabajador
    String ReporTrabajadoBuscar="";
    String ReporTrabajadorPor="nombres";
    String ReporTrabajadorOrden="nombres";

    // Datos Proveedor
    String ReporProveedorBuscar="";
    String ReporProveedorPor="nombres";
    String ReporProveedorOrden="nombres";

    // Datos Cliente
    String ReporClienteBuscar="";
    String ReporClientePor="nombres";
    String ReporClienteOrden="nombres";

    /* Listas de ID's de objetos relacionados a un combobox */
    ArrayList indicesCboBobinaServicioImpresion = new ArrayList(); //Lista de IDs de bobinas
    ArrayList indicesCboComplejidadImpresion = new ArrayList(); //Lista de IDs de complejidad impresion
    ArrayList indicesCboDimensionFoto = new ArrayList(); //Lista de IDs de dimenesiones de foto
    ArrayList indicesCboTipoCliente = new ArrayList(); //Lista de IDs de tipos de cliente
    ArrayList indicesCboTipoEdicion = new ArrayList(); //Lista de IDs de tipos de edicion
    ArrayList indicesCboComplejidadEdicion = new ArrayList(); //Lista de IDs de complejidades de edicion
    /**
     * Constructor que inicializa los controles de la interfaz y oculta los
     * paneles de gestion venta y reportes.
     */
    public PanelPrincipal() {
        try {
            //UIManager.setLookAndFeel(new com.nilo.plaf.nimrod.NimRODLookAndFeel());
            UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName());
        } catch (Exception ex) {
            Logger.getLogger(PanelPrincipal.class.getName()).log(Level.SEVERE, null, ex);
        }       

        initComponents();
        // Hacemos la conexion con la Base de Datos!
        emf = Persistence.createEntityManagerFactory("fid.netPU");
        
        this.setLocationRelativeTo(this);
        OcultarPaneles(); // Ocultamos las petañas por defecto        
        initDataControllersSwingFromDatabase(); //Inicializacion de datos de controles Swing

    }

    // Funcion que me permite ocultar las pestañas que no deseo visualizar
    public void OcultarPaneles()
    {
        PanelGestionVenta.setVisible(false);
        PanelGestionReportes.setVisible(false);
    }


    /*-------------------------------------------------------------------------------------
    |  Inicializacion de Controles Swing con llenado de datos de la Base de Datos         |
    |-------------------------------------------------------------------------------------|
    | 1. Nombre método principal: initDataControllersSwingFromDatabase()                  |
    | 2. Nomenclatura de métodos:  fill<nombre_control_swing>                             |
    | 3. Descripción:                                                                     |
    |     Todos los métodos "fill<nombre_control_swing>" serán llamados desde             |
    |     "initDataControllersFromDatabase()", éste último método será declarado en el    |
    |     constructor de la clase: PanelPrincipal                                         |
    |------------------------------------------------------------------------------------*/

    /*
       1.  Controles Swing de PanelNuevoServicioImpresion y PanelNuevoServicioEdicion
       -----------------------------------------------------------------------------------
           (  Jerarquía de paneles  )
              -> PanelContenedor
                 |_ PanelGestionVenta
                    |_ PestaniaGestionVenta
                       |_ PanelNuevoServicioImpresion  <-
                       |_ PanelNuevoServicioEdicion    <-
     */

    /**
     * Método principal desde donde todos los métodos "fill<nombre_control_swing>" serán llamados.
     * Este método es el encargado de inicializar los datos provenientes de la base de datos
     * en los controles Swing.
     */
    public void initDataControllersSwingFromDatabase() {
        fillCboBobinaServicioImpresion();
        fillCboDimensionFoto();
        fillCboTipoCliente();
        fillCboComplejidadImpresion();
        fillCboTipoEdicion();
        fillCboComplejidadEdicion();
        /*fillTablaProductosServicioImpresion();
        fillTablaProductosServicioEdicion();*/
       // fillTablaProductosServicioImpresion();
    }


    /**
     * En Panel de Configuracion Venta, en Pestaña Nuevo Servicio de Impresion,
     * se carga el combobox: cboBobinaVolumenImpresion con datos de la base de
     * datos. El combobox indica: nombre de tipo de bobina.
     */
    public void fillCboBobinaServicioImpresion() {
        BobinaImplementsService sbobina = new BobinaImplementsService();        
        List<FidBobina> bobinas = null;   

        sbobina.setEntityManagerFactory(emf);        
        bobinas = sbobina.listarBobinas(false, "", true, 0, 0);        

        int i;
        int n = bobinas.size();
        String nombreBobina = "";
        
        for(i=0;i<n;i++) {
            nombreBobina = bobinas.get(i).getFidTipoImpresionId().getNombre();//Tipo impresion: Mate o brillo
            nombreBobina += " ";
            nombreBobina += bobinas.get(i).getFidDimensionBobinaId().getAltura().toString();//Alto bobina
            nombreBobina += "x";
            nombreBobina += bobinas.get(i).getFidDimensionBobinaId().getAncho().toString();//Ancho bobina        
            
            this.cboBobinaVolumenImpresion.addItem( "Tipo "+nombreBobina );//Agregamos el nombre del item
            this.indicesCboBobinaServicioImpresion.add( bobinas.get(i).getId() );//Obtenemos el ID respectivo del objeto
        }
    }

    /**
     * En Panel de Configuracion Venta, en Pestaña Nuevo Servicio de Impresion,
     * se carga el combobox: cboComplejidadImpresion con datos de la base de
     * datos. El combobox indica el volumen de impresion concatenados.
     */
    public void fillCboComplejidadImpresion() {
        ComplejidadImpresionImplementsService scomplejidad = new ComplejidadImpresionImplementsService();
        List<FidComplejidadImpresion> volumenesImpresion = null;
        
        scomplejidad.setEntityManagerFactory(emf);        
        volumenesImpresion = scomplejidad.listarComplejidadesImpresion(false, "", true, 0, 0);

        int i;
        int n = volumenesImpresion.size();
        String nombreComplejidadImpresion = "";
        for(i=0;i<n;i++) {            
            nombreComplejidadImpresion = volumenesImpresion.get(i).getNombre();//Volumen de impresion
            this.cboComplejidadImpresion.addItem( nombreComplejidadImpresion );//Agregamos el nombre del item
            this.indicesCboComplejidadImpresion.add( volumenesImpresion.get(i).getId() );//Obtenemos el ID respectivo del objeto
        }
    }
//cboComplejidadImpresion

    /**
     * En Panel de Configuracion Venta, en Pestaña Nuevo Servicio de Impresion y Edicion,
     * se carga el combobox: cboDimensionFoto con datos de la base de
     * datos. El combobox indica dimension: alto x ancho
     */
    public void fillCboDimensionFoto() {
        DimensionFotoImplementsService sdimension = new DimensionFotoImplementsService();
        List<FidDimensionFoto> dimensiones = null;

        sdimension.setEntityManagerFactory(emf);
        dimensiones = sdimension.listarDimensionesFoto(false, "", true, 0, 0);

        int i;
        int n = dimensiones.size();
        String nomDimension = "";
        for(i=0;i<n;i++) {
            nomDimension = dimensiones.get(i).getAltura().toString();
            nomDimension +=" x ";
            nomDimension += dimensiones.get(i).getAncho().toString();
            this.cboDimensionFotoImpresion.addItem( nomDimension );
            this.cboDimensionFotoEdicion.addItem( nomDimension );
            this.indicesCboDimensionFoto.add( dimensiones.get(i).getId() );//Obtenemos el ID respectivo del objeto
        }
    }


    /**
     * En Panel de Configuracion Venta, en Pestaña Nuevo Servicio de Impresion y Edicion,
     * se carga el combobox: cboTipoCliente con datos de la base de
     * datos. El combobox indica los tipos de cliente que existen
     */
     public void fillCboTipoCliente() {
        TipoClienteImplementsService stipocliente = new TipoClienteImplementsService();
        List<FidTipoCliente> tiposcliente = null;

        stipocliente.setEntityManagerFactory(emf);
        tiposcliente = stipocliente.listarTiposCliente(false, "", true, 0, 0);

        int i;
        int n = tiposcliente.size();
        for(i=0;i<n;i++) {
            this.cboTipoClienteImpresion.addItem( tiposcliente.get(i).getNombre() );
            this.cboTipoClienteEdicion.addItem( tiposcliente.get(i).getNombre() );
            this.indicesCboTipoCliente.add( tiposcliente.get(i).getId() );//Obtenemos el ID respectivo del objeto
        }
     }

     /**
     * En Panel de Configuracion Venta, en Pestaña Nuevo Servicio de Edicion,
     * se carga el combobox: cboTipoEdicion con datos de la base de
     * datos. El combobox indica los tipos de edición que existen
     */
     public void fillCboTipoEdicion() {
        TipoEdicionImplementsService stipoedicion = new TipoEdicionImplementsService();
        List<FidTipoEdicion> tiposedicion = null;

        stipoedicion.setEntityManagerFactory(emf);
        tiposedicion = stipoedicion.listarTiposEdicion(false, "", true, 0, 0);

        int i;
        int n = tiposedicion.size();
        for(i=0;i<n;i++) {
            this.cboTipoEdicion.addItem( tiposedicion.get(i).getNombre() );
            this.indicesCboTipoEdicion.add( tiposedicion.get(i).getId() );//Obtenemos el ID respectivo del objeto
        }
     }


     /**
     * En Panel de Configuracion Venta, en Pestaña Nuevo Servicio de Edicion,
     * se carga el combobox: cboComplejidadEdicion con datos de la base de
     * datos. El combobox indica los diversos tipos de complejidad en la parte de edición que existen
     */
     public void fillCboComplejidadEdicion() {
        ComplejidadEdicionImplementsService scomplejidadedicion = new ComplejidadEdicionImplementsService();
        List<FidComplejidadEdicion> complejidadesedicion = null;

        scomplejidadedicion.setEntityManagerFactory(emf);
        complejidadesedicion = scomplejidadedicion.listarComplejidadesEdicion(false, "", true, 0, 0);

        int i;
        int n = complejidadesedicion.size();
        for(i=0;i<n;i++) {
            this.cboComplejidadEdicion.addItem( complejidadesedicion.get(i).getNombre() );
            this.indicesCboComplejidadEdicion.add( complejidadesedicion.get(i).getId() );//Obtenemos el ID respectivo del objeto
        }
     }


     /**
     * En Panel de Configuracion Venta, en Pestaña Nuevo Servicio de Impresion,
     * se cargan los servicios de Impresion en un JTable para visualizarlos
     */
     public void fillTablaProductosServicioImpresion() {
         ModeloTabla modeloTabla= new ModeloTabla();
         ProductoVentaInterfazService sproducto = new ProductoVentaImplementsService();
         sproducto.setEntityManagerFactory(emf);
         //List<FidProductoVenta> productos = sproducto.reportar("", )
         
         List<FidProductoVenta> lst3 = sproducto.reportar("FidServicioDefinidoImpresion", "", null, "", "", true, false, -1, -1);
         System.out.println("Cantidad de servicios impresion: "+lst3.size());

         modeloTabla.addColumn("Tipo Impresion");
         modeloTabla.addColumn("Volumen Impresión");
         modeloTabla.addColumn("Dimensión Foto");
         modeloTabla.addColumn("Tipo de cliente");
         modeloTabla.addColumn("Precio");
         modeloTabla.addColumn("Ofertar");
         for(int i=0; i<lst3.size(); i++){
            FidProductoVenta servicio = (FidProductoVenta)lst3.get(i);
             Object[] fila = new Object[6];
             fila[0] = servicio.getFidBobinaId().getFidTipoImpresionId().getNombre();
             fila[1] = servicio.getFidComplejidadImpresionId().getNombre();
             fila[2] = servicio.getFidDimensionFotoId().getNombre();
             fila[3] = servicio.getFidTipoClienteId().getNombre();
             fila[4] = servicio.getPrecio();
             fila[5] = ((servicio.getOfertar())?"Sí":"No");
             modeloTabla.addRow(fila);
         }
         tablaServiciosImpresion.setModel(modeloTabla);
/*        TableColumnModel tcm = tablaServiciosImpresion.getColumnModel();
        // Se pide la columna por su número, empezando en cero.
        tablaServiciosImpresion.removeColumn (tcm.getColumn(0));  // oculta columna de tabla
        tcm.getColumn(0).setPreferredWidth(200);        
        tcm.getColumn(1).setPreferredWidth(100);
        tcm.getColumn(2).setPreferredWidth(150);
        tcm.getColumn(3).setPreferredWidth(200);
        tcm.getColumn(4).setPreferredWidth(80);
        tcm.getColumn(6).setPreferredWidth(80);
        tcm.getColumn(7).setPreferredWidth(80);*/
     }

/**
     * En Panel de Configuracion Venta, en Pestaña Nuevo Servicio de Edicion,
     * se cargan los servicios de Edicion en un JTable para visualizarlos
     */
     public void fillTablaProductosServicioEdicion() {
         ModeloTabla modeloTabla= new ModeloTabla();
         ProductoVentaInterfazService sproducto = new ProductoVentaImplementsService();
         sproducto.setEntityManagerFactory(emf);
         //List<FidProductoVenta> productos = sproducto.reportar("", )

         List<FidProductoVenta> lst3 = sproducto.reportar("FidServicioDefinidoEdicion", "", null, "", "", true, false, -1, -1);
         System.out.println("Cantidad de servicios edicion: "+lst3.size());

         modeloTabla.addColumn("Tarea de Edición");
         modeloTabla.addColumn("Complejidad Edición");
         modeloTabla.addColumn("Dimensión Foto");
         modeloTabla.addColumn("Tipo de cliente");
         modeloTabla.addColumn("Precio");
         modeloTabla.addColumn("Ofertar");
         for(int i=0; i<lst3.size(); i++){
            FidProductoVenta servicio = (FidProductoVenta)lst3.get(i);
             Object[] fila = new Object[6];
             //fila[0] = servicio.getFidBobinaId().getFidTipoImpresionId().getNombre();
             fila[0] = servicio.getFidTipoEdicionId().getNombre();
             fila[1] = servicio.getFidComplejidadEdicionId().getNombre();
             fila[2] = servicio.getFidDimensionFotoId().getNombre();
             fila[3] = servicio.getFidTipoClienteId().getNombre();
             fila[4] = servicio.getPrecio();
             fila[5] = ((servicio.getOfertar())?"Sí":"No");
             modeloTabla.addRow(fila);
         }
         tablaServiciosEdicion.setModel(modeloTabla);
     }

    /*--------------------------------------------------------------------------------------
    | FIN Inicializacion de Controles Swing o AWT con llenado de datos de la Base de Datos |
    |-------------------------------------------------------------------------------------/*



      

    /** This msdgethod is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        nimRODTheme1 = new com.nilo.plaf.nimrod.NimRODTheme();
        nimRODToolBarUI1 = new com.nilo.plaf.nimrod.NimRODToolBarUI();
        desktopPane = new javax.swing.JDesktopPane();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        Principal = new javax.swing.JSplitPane();
        jScrollPane1 = new javax.swing.JScrollPane();
        MenuLeft = new javax.swing.JTree();
        PanelContenedor = new javax.swing.JPanel();
        PanelGestionVenta = new javax.swing.JPanel();
        PestaniaGestionVenta = new javax.swing.JTabbedPane();
        PanelNuevoPedidoVenta = new javax.swing.JPanel();
        SubPanelDatosComprobante = new javax.swing.JPanel();
        pcDatosComprobante = new javax.swing.JPanel();
        labelNumComprobante = new javax.swing.JLabel();
        txtNumComprobante = new javax.swing.JTextField();
        labelTipoComprobante = new javax.swing.JLabel();
        cboTipoComprobante = new javax.swing.JComboBox();
        labelFecha = new javax.swing.JLabel();
        txtFecha = new javax.swing.JTextField();
        labelUsuario = new javax.swing.JLabel();
        cboUsuario = new javax.swing.JComboBox();
        checkVentaSucursal = new javax.swing.JCheckBox();
        SubPanelDatosCliente = new javax.swing.JPanel();
        pcDatosCliente = new javax.swing.JPanel();
        labelNombreCliente = new javax.swing.JLabel();
        txtNombreCliente = new javax.swing.JTextField();
        labelNumDocIdentidad = new javax.swing.JLabel();
        txtNumDocIdentidad = new javax.swing.JTextField();
        SubPanelDatosLineaPedido = new javax.swing.JPanel();
        pcDatosLineaPedido = new javax.swing.JPanel();
        scrollTablaProductos = new javax.swing.JScrollPane();
        tablaProductosPedidoVenta = new javax.swing.JTable();
        btnAgregarProducto = new javax.swing.JButton();
        btnModificarProducto = new javax.swing.JButton();
        btnEliminarProducto = new javax.swing.JButton();
        SubPanelPagoPedido = new javax.swing.JPanel();
        pcPagoPedido = new javax.swing.JPanel();
        labelSubTotal = new javax.swing.JLabel();
        txtSubTotal = new javax.swing.JTextField();
        labelIgv = new javax.swing.JLabel();
        txtIgv = new javax.swing.JTextField();
        labelTotal = new javax.swing.JLabel();
        txtTotal = new javax.swing.JTextField();
        GVt = new javax.swing.JPanel();
        GVt1 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        jTextField9 = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jTextField10 = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        jTextField11 = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        jDateChooser1 = new com.toedter.calendar.JDateChooser();
        jLabel16 = new javax.swing.JLabel();
        jTextField12 = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        jComboBox3 = new javax.swing.JComboBox();
        jButton6 = new javax.swing.JButton();
        GVt2 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTable3 = new javax.swing.JTable();
        GVlt = new javax.swing.JPanel();
        GVlt1 = new javax.swing.JPanel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        jTextField16 = new javax.swing.JTextField();
        jTextField17 = new javax.swing.JTextField();
        jTextField18 = new javax.swing.JTextField();
        jTextField19 = new javax.swing.JTextField();
        jTextField20 = new javax.swing.JTextField();
        jTextField21 = new javax.swing.JTextField();
        jSeparator2 = new javax.swing.JSeparator();
        jLabel28 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jTextField22 = new javax.swing.JTextField();
        jTextField23 = new javax.swing.JTextField();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        GVlt2 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        jTable4 = new javax.swing.JTable();
        GVlpv = new javax.swing.JPanel();
        GVpedidoVenta = new javax.swing.JPanel();
        GVlpv1 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        PanelNuevoServicioImpresion = new javax.swing.JPanel();
        SubPanelRecursosInicialesImpresion = new javax.swing.JPanel();
        pcRecursosInicialesImpresion = new javax.swing.JPanel();
        labelBobinaVolumenImpresion = new javax.swing.JLabel();
        cboBobinaVolumenImpresion = new javax.swing.JComboBox();
        labelComplejidadImpresion = new javax.swing.JLabel();
        cboComplejidadImpresion = new javax.swing.JComboBox();
        labelPrecioUnitarioInd = new javax.swing.JLabel();
        txtPrecioUnitarioInd = new javax.swing.JTextField();
        SubPanelServicioDirigido = new javax.swing.JPanel();
        pcServicioDirigido = new javax.swing.JPanel();
        labelDimensionFoto = new javax.swing.JLabel();
        cboDimensionFotoImpresion = new javax.swing.JComboBox();
        labelTipoCliente = new javax.swing.JLabel();
        cboTipoClienteImpresion = new javax.swing.JComboBox();
        labelPrecioUnitarioInd1 = new javax.swing.JLabel();
        txtPrecioUnitarioServicioImpresion = new javax.swing.JTextField();
        checkIncluirEnOfertasImpresion = new javax.swing.JCheckBox();
        btnAgregarServicioImpresion = new javax.swing.JButton();
        PanelServicioImpresionRegistrado = new javax.swing.JPanel();
        SubPanelReporteServiciosImpresion = new javax.swing.JPanel();
        pcReporteServiciosImpresion = new javax.swing.JPanel();
        scrollTablaServiciosImpresion = new javax.swing.JScrollPane();
        tablaServiciosImpresion = new javax.swing.JTable();
        PanelNuevoServicioEdicion = new javax.swing.JPanel();
        SubPanelRecursosInicialesEdicion = new javax.swing.JPanel();
        pcRecursosInicialesEdicion = new javax.swing.JPanel();
        cboTipoEdicion = new javax.swing.JComboBox();
        labelTipoEdicion = new javax.swing.JLabel();
        labelComplejidadEdicion = new javax.swing.JLabel();
        cboComplejidadEdicion = new javax.swing.JComboBox();
        SubPanelServicioDirigidoEdicion = new javax.swing.JPanel();
        pcServicioDirigidoEdicion = new javax.swing.JPanel();
        labelDimensionFotoEdicion = new javax.swing.JLabel();
        cboDimensionFotoEdicion = new javax.swing.JComboBox();
        labelTipoClienteEdicion = new javax.swing.JLabel();
        cboTipoClienteEdicion = new javax.swing.JComboBox();
        labelPrecioUnitarioServicioEdicion = new javax.swing.JLabel();
        txtPrecioUnitarioServicioEdicion = new javax.swing.JTextField();
        checkIncluirEnOfertasEdicion = new javax.swing.JCheckBox();
        btnAgregarServicioEdicion = new javax.swing.JButton();
        PanelServicioEdicionRegistrado = new javax.swing.JPanel();
        SubPanelReporteServiciosEdicion = new javax.swing.JPanel();
        pcReporteServiciosEdicion = new javax.swing.JPanel();
        scrollTablaServiciosEdicion = new javax.swing.JScrollPane();
        tablaServiciosEdicion = new javax.swing.JTable();
        jToolBar1 = new javax.swing.JToolBar();
        GVBotonNuevo = new javax.swing.JButton();
        GVBotonVerTodos = new javax.swing.JButton();
        GVBotonBuscar = new javax.swing.JButton();
        GVBotonEliminar = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        PanelGestionReportes = new javax.swing.JPanel();
        PestaniaReportes = new javax.swing.JTabbedPane();
        PanelReporteTrabajadores = new javax.swing.JPanel();
        jScrollPane7 = new javax.swing.JScrollPane();
        TablaReporteTrabajadores = new javax.swing.JTable();
        jPanel9 = new javax.swing.JPanel();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        TrabajadorOrdenar = new javax.swing.JComboBox();
        TrabajadorPor = new javax.swing.JComboBox();
        TrabajadorBusca = new javax.swing.JTextField();
        BotonReporteTrabajadoresMostrarTodo = new javax.swing.JButton();
        jSeparator3 = new javax.swing.JSeparator();
        BotonReporteTrabajadoresImprimir = new javax.swing.JButton();
        PanelReporteProveedores = new javax.swing.JPanel();
        jPanel10 = new javax.swing.JPanel();
        jLabel33 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        ProveedorOrdenar = new javax.swing.JComboBox();
        ProveedorPor = new javax.swing.JComboBox();
        ProveedorBusca = new javax.swing.JTextField();
        BotonReporteProveedoresMostrarTodo = new javax.swing.JButton();
        jSeparator4 = new javax.swing.JSeparator();
        BotonReporteProveedoresImprimir = new javax.swing.JButton();
        jScrollPane8 = new javax.swing.JScrollPane();
        TablaReporteProveedores = new javax.swing.JTable();
        PanelReporteClientes = new javax.swing.JPanel();
        jPanel11 = new javax.swing.JPanel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        ClienterOrdenar = new javax.swing.JComboBox();
        ClientePor = new javax.swing.JComboBox();
        ClienteBusca = new javax.swing.JTextField();
        BotonReporteClienteMostrarTodo = new javax.swing.JButton();
        jSeparator5 = new javax.swing.JSeparator();
        BotonReporteClientesImprimir = new javax.swing.JButton();
        jScrollPane9 = new javax.swing.JScrollPane();
        TablaReporteClientes = new javax.swing.JTable();
        menuBar = new javax.swing.JMenuBar();
        fileMenu = new javax.swing.JMenu();
        openMenuItem = new javax.swing.JMenuItem();
        saveMenuItem = new javax.swing.JMenuItem();
        saveAsMenuItem = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JSeparator();
        exitMenuItem = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenu3 = new javax.swing.JMenu();
        MenuAdminRegCliente = new javax.swing.JMenuItem();
        MenuAdminModCliente = new javax.swing.JMenuItem();
        MenuAdminRegistro = new javax.swing.JMenu();
        MenuAdminRegTrabajador = new javax.swing.JMenuItem();
        MenuAdminModiTrab = new javax.swing.JMenuItem();
        jMenu5 = new javax.swing.JMenu();
        MenuAdminRegProveedor = new javax.swing.JMenuItem();
        MenuAdminModProveedor = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenuItem5 = new javax.swing.JMenuItem();
        jMenuItem6 = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        MenuAdminDatos = new javax.swing.JMenu();
        MenuAdminRegTipoCliente = new javax.swing.JMenuItem();
        MenuAdminRegRolTrabajador = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenuItem9 = new javax.swing.JMenuItem();
        helpMenu = new javax.swing.JMenu();
        contentMenuItem = new javax.swing.JMenuItem();
        aboutMenuItem = new javax.swing.JMenuItem();

        nimRODTheme1.setOpacity(10);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Sistema Foto Imagen Digital");
        setResizable(false);

        desktopPane.setBackground(javax.swing.UIManager.getDefaults().getColor("Button.background"));

        jPanel1.setBackground(new java.awt.Color(0, 102, 102));

        jLabel1.setIcon(new ImageIcon(getClass().getResource("/Images/logo.png")));

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(680, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap(29, Short.MAX_VALUE)
                .addComponent(jLabel1)
                .addContainerGap())
        );

        jPanel1.setBounds(0, 0, 950, 40);
        desktopPane.add(jPanel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Principal.setDividerLocation(150);
        Principal.setDividerSize(10);
        Principal.setContinuousLayout(true);
        Principal.setOneTouchExpandable(true);

        javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode("root");
        javax.swing.tree.DefaultMutableTreeNode treeNode2 = new javax.swing.tree.DefaultMutableTreeNode("Gestión Venta");
        javax.swing.tree.DefaultMutableTreeNode treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Nuevo Pedido de Venta");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Ver Pedidos de Venta");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Configuración de ventas");
        javax.swing.tree.DefaultMutableTreeNode treeNode4 = new javax.swing.tree.DefaultMutableTreeNode("Servicio Impresión");
        treeNode3.add(treeNode4);
        treeNode4 = new javax.swing.tree.DefaultMutableTreeNode("Servicio Edición");
        treeNode3.add(treeNode4);
        treeNode4 = new javax.swing.tree.DefaultMutableTreeNode("Productos Mercadería");
        treeNode3.add(treeNode4);
        treeNode2.add(treeNode3);
        treeNode1.add(treeNode2);
        treeNode2 = new javax.swing.tree.DefaultMutableTreeNode("Almacen");
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("uno");
        treeNode2.add(treeNode3);
        treeNode1.add(treeNode2);
        treeNode2 = new javax.swing.tree.DefaultMutableTreeNode("Reportes");
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Trabajadores");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Proveedores");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Clientes");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Productos");
        treeNode2.add(treeNode3);
        treeNode1.add(treeNode2);
        MenuLeft.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1));
        MenuLeft.setRootVisible(false);
        MenuLeft.setShowsRootHandles(true);
        MenuLeft.setSize(300, 100);
        MenuLeft.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
            public void valueChanged(javax.swing.event.TreeSelectionEvent evt) {
                MenuLeftValueChanged(evt);
            }
        });
        jScrollPane1.setViewportView(MenuLeft);

        Principal.setLeftComponent(jScrollPane1);

        PanelContenedor.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        PanelGestionVenta.setBorder(javax.swing.BorderFactory.createTitledBorder("Gestión Venta: Pedido de Venta"));

        SubPanelDatosComprobante.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos de comprobante", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 153, 204))); // NOI18N

        labelNumComprobante.setText("Nº Comprobante:");

        labelTipoComprobante.setText("Tipo de Comprobante:");
        labelTipoComprobante.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);

        cboTipoComprobante.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Boleta", "Factura", "Ticket de venta" }));

        labelFecha.setText("Fecha:");

        labelUsuario.setText("Atiende:");

        cboUsuario.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Guillermo Ganoza", "Luis Perez", "Juan Grados", "Pedro Shiguijara", "Marco de las Nieves" }));

        checkVentaSucursal.setText("Venta a Sucursal:");
        checkVentaSucursal.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        checkVentaSucursal.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        checkVentaSucursal.setMargin(new java.awt.Insets(0, 0, 0, 0));
        checkVentaSucursal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkVentaSucursalActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pcDatosComprobanteLayout = new javax.swing.GroupLayout(pcDatosComprobante);
        pcDatosComprobante.setLayout(pcDatosComprobanteLayout);
        pcDatosComprobanteLayout.setHorizontalGroup(
            pcDatosComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcDatosComprobanteLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(pcDatosComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pcDatosComprobanteLayout.createSequentialGroup()
                        .addGap(113, 113, 113)
                        .addComponent(txtNumComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pcDatosComprobanteLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pcDatosComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pcDatosComprobanteLayout.createSequentialGroup()
                                .addComponent(labelUsuario)
                                .addGap(72, 72, 72)
                                .addComponent(cboUsuario, 0, 140, Short.MAX_VALUE))
                            .addComponent(labelNumComprobante))))
                .addGap(18, 18, 18)
                .addGroup(pcDatosComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pcDatosComprobanteLayout.createSequentialGroup()
                        .addComponent(labelTipoComprobante)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cboTipoComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(labelFecha)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtFecha, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(checkVentaSucursal))
                .addContainerGap())
        );
        pcDatosComprobanteLayout.setVerticalGroup(
            pcDatosComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcDatosComprobanteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pcDatosComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelNumComprobante)
                    .addComponent(txtNumComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cboTipoComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelTipoComprobante)
                    .addComponent(labelFecha)
                    .addComponent(txtFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pcDatosComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cboUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelUsuario)
                    .addComponent(checkVentaSucursal))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout SubPanelDatosComprobanteLayout = new javax.swing.GroupLayout(SubPanelDatosComprobante);
        SubPanelDatosComprobante.setLayout(SubPanelDatosComprobanteLayout);
        SubPanelDatosComprobanteLayout.setHorizontalGroup(
            SubPanelDatosComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelDatosComprobanteLayout.createSequentialGroup()
                .addComponent(pcDatosComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(44, Short.MAX_VALUE))
        );
        SubPanelDatosComprobanteLayout.setVerticalGroup(
            SubPanelDatosComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pcDatosComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        SubPanelDatosCliente.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos Cliente", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 153, 204))); // NOI18N

        labelNombreCliente.setText("Nombres y apellidos:");

        labelNumDocIdentidad.setText("R.U.C:");

        javax.swing.GroupLayout pcDatosClienteLayout = new javax.swing.GroupLayout(pcDatosCliente);
        pcDatosCliente.setLayout(pcDatosClienteLayout);
        pcDatosClienteLayout.setHorizontalGroup(
            pcDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcDatosClienteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelNombreCliente)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtNombreCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 326, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(labelNumDocIdentidad)
                .addGap(18, 18, 18)
                .addComponent(txtNumDocIdentidad, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(16, Short.MAX_VALUE))
        );
        pcDatosClienteLayout.setVerticalGroup(
            pcDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcDatosClienteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pcDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelNombreCliente)
                    .addComponent(txtNombreCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelNumDocIdentidad)
                    .addComponent(txtNumDocIdentidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout SubPanelDatosClienteLayout = new javax.swing.GroupLayout(SubPanelDatosCliente);
        SubPanelDatosCliente.setLayout(SubPanelDatosClienteLayout);
        SubPanelDatosClienteLayout.setHorizontalGroup(
            SubPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelDatosClienteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pcDatosCliente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        SubPanelDatosClienteLayout.setVerticalGroup(
            SubPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pcDatosCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        SubPanelDatosLineaPedido.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Línea Orden Pedido", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 153, 204))); // NOI18N

        tablaProductosPedidoVenta.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "Nº", "Producto", "Cantidad", "Precio", "Oferta"
            }
        ));
        scrollTablaProductos.setViewportView(tablaProductosPedidoVenta);

        btnAgregarProducto.setText("Agregar");
        btnAgregarProducto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgregarProductoActionPerformed(evt);
            }
        });

        btnModificarProducto.setText("Modificar");
        btnModificarProducto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnModificarProductoActionPerformed(evt);
            }
        });

        btnEliminarProducto.setText("Eliminar");

        javax.swing.GroupLayout pcDatosLineaPedidoLayout = new javax.swing.GroupLayout(pcDatosLineaPedido);
        pcDatosLineaPedido.setLayout(pcDatosLineaPedidoLayout);
        pcDatosLineaPedidoLayout.setHorizontalGroup(
            pcDatosLineaPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pcDatosLineaPedidoLayout.createSequentialGroup()
                .addContainerGap(584, Short.MAX_VALUE)
                .addGroup(pcDatosLineaPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(btnEliminarProducto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnModificarProducto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnAgregarProducto, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(37, 37, 37))
            .addGroup(pcDatosLineaPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pcDatosLineaPedidoLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(scrollTablaProductos, javax.swing.GroupLayout.PREFERRED_SIZE, 556, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(144, Short.MAX_VALUE)))
        );
        pcDatosLineaPedidoLayout.setVerticalGroup(
            pcDatosLineaPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcDatosLineaPedidoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnAgregarProducto)
                .addGap(5, 5, 5)
                .addComponent(btnModificarProducto)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnEliminarProducto)
                .addContainerGap(62, Short.MAX_VALUE))
            .addGroup(pcDatosLineaPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pcDatosLineaPedidoLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(scrollTablaProductos, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );

        javax.swing.GroupLayout SubPanelDatosLineaPedidoLayout = new javax.swing.GroupLayout(SubPanelDatosLineaPedido);
        SubPanelDatosLineaPedido.setLayout(SubPanelDatosLineaPedidoLayout);
        SubPanelDatosLineaPedidoLayout.setHorizontalGroup(
            SubPanelDatosLineaPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelDatosLineaPedidoLayout.createSequentialGroup()
                .addComponent(pcDatosLineaPedido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        SubPanelDatosLineaPedidoLayout.setVerticalGroup(
            SubPanelDatosLineaPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelDatosLineaPedidoLayout.createSequentialGroup()
                .addComponent(pcDatosLineaPedido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        SubPanelPagoPedido.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Pago Pedido", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 153, 204))); // NOI18N

        labelSubTotal.setText("Subtotal:");

        labelIgv.setText("IGV:");

        labelTotal.setFont(new java.awt.Font("Tahoma", 1, 11));
        labelTotal.setText("Total:");

        txtTotal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtTotalActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pcPagoPedidoLayout = new javax.swing.GroupLayout(pcPagoPedido);
        pcPagoPedido.setLayout(pcPagoPedidoLayout);
        pcPagoPedidoLayout.setHorizontalGroup(
            pcPagoPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcPagoPedidoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pcPagoPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelSubTotal)
                    .addComponent(labelTotal))
                .addGap(14, 14, 14)
                .addGroup(pcPagoPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtSubTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(labelIgv)
                .addGap(14, 14, 14)
                .addComponent(txtIgv, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pcPagoPedidoLayout.setVerticalGroup(
            pcPagoPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcPagoPedidoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pcPagoPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelSubTotal)
                    .addComponent(txtSubTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtIgv, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelIgv))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pcPagoPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelTotal)
                    .addComponent(txtTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout SubPanelPagoPedidoLayout = new javax.swing.GroupLayout(SubPanelPagoPedido);
        SubPanelPagoPedido.setLayout(SubPanelPagoPedidoLayout);
        SubPanelPagoPedidoLayout.setHorizontalGroup(
            SubPanelPagoPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelPagoPedidoLayout.createSequentialGroup()
                .addGap(203, 203, 203)
                .addComponent(pcPagoPedido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(158, Short.MAX_VALUE))
        );
        SubPanelPagoPedidoLayout.setVerticalGroup(
            SubPanelPagoPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pcPagoPedido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        javax.swing.GroupLayout PanelNuevoPedidoVentaLayout = new javax.swing.GroupLayout(PanelNuevoPedidoVenta);
        PanelNuevoPedidoVenta.setLayout(PanelNuevoPedidoVentaLayout);
        PanelNuevoPedidoVentaLayout.setHorizontalGroup(
            PanelNuevoPedidoVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelNuevoPedidoVentaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelNuevoPedidoVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(SubPanelPagoPedido, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(SubPanelDatosLineaPedido, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(SubPanelDatosComprobante, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(SubPanelDatosCliente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        PanelNuevoPedidoVentaLayout.setVerticalGroup(
            PanelNuevoPedidoVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelNuevoPedidoVentaLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(SubPanelDatosComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(SubPanelDatosCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(SubPanelDatosLineaPedido, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(SubPanelPagoPedido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(180, 180, 180))
        );

        PestaniaGestionVenta.addTab("Pedido Venta", PanelNuevoPedidoVenta);

        jLabel3.setText("Nº:");

        jLabel13.setText("Nº Pedido Venta:");

        jLabel14.setText("Tercero:");

        jLabel15.setText("Fecha:");

        jLabel16.setText("Hora:");

        jLabel17.setText("Estado:");

        jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Borrador", "En Ejecución", "Completado" }));

        jButton6.setText("Completar Tarea");

        javax.swing.GroupLayout GVt1Layout = new javax.swing.GroupLayout(GVt1);
        GVt1.setLayout(GVt1Layout);
        GVt1Layout.setHorizontalGroup(
            GVt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(GVt1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(GVt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel14, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel15, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(GVt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(GVt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jTextField10, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jTextField9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(934, 934, 934))
        );
        GVt1Layout.setVerticalGroup(
            GVt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(GVt1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(GVt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField9, javax.swing.GroupLayout.DEFAULT_SIZE, 20, Short.MAX_VALUE)
                    .addComponent(jLabel3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(GVt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField10, javax.swing.GroupLayout.DEFAULT_SIZE, 20, Short.MAX_VALUE)
                    .addComponent(jLabel13))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(GVt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField11, javax.swing.GroupLayout.DEFAULT_SIZE, 20, Short.MAX_VALUE)
                    .addComponent(jLabel14))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(GVt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(GVt1Layout.createSequentialGroup()
                        .addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(GVt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel16)
                            .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(GVt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel17)
                            .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jLabel15))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton6)
                .addContainerGap())
        );

        jTable3.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "ID", "PEDIDO", "CLIENTE", "DESCRIPCION"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, true, true, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane4.setViewportView(jTable3);

        javax.swing.GroupLayout GVt2Layout = new javax.swing.GroupLayout(GVt2);
        GVt2.setLayout(GVt2Layout);
        GVt2Layout.setHorizontalGroup(
            GVt2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 720, Short.MAX_VALUE)
        );
        GVt2Layout.setVerticalGroup(
            GVt2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout GVtLayout = new javax.swing.GroupLayout(GVt);
        GVt.setLayout(GVtLayout);
        GVtLayout.setHorizontalGroup(
            GVtLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(GVtLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(GVtLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(GVt2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(GVt1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        GVtLayout.setVerticalGroup(
            GVtLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(GVtLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(GVt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(GVt2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        PestaniaGestionVenta.addTab("Tarea", GVt);

        jLabel22.setText("Nº:");

        jLabel23.setText("Servicio:");

        jLabel24.setText("Trabajador:");

        jLabel25.setText("Tipo:");

        jLabel26.setText("Cantidad:");

        jLabel27.setText("Fecha:");

        jTextField16.setText("33");

        jTextField17.setText("Producto Servicio Montaje Completo");

        jTextField19.setText("Editor");

        jTextField20.setText("10");

        jTextField21.setText("12/02/09");

        jSeparator2.setOrientation(javax.swing.SwingConstants.VERTICAL);

        jLabel28.setText("Nº Doc Tarea:");

        jLabel29.setText("Hora:");

        jTextField22.setText("38");

        jTextField23.setText("10:23:05");

        jButton3.setText("C");

        jButton4.setText("C");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout GVlt1Layout = new javax.swing.GroupLayout(GVlt1);
        GVlt1.setLayout(GVlt1Layout);
        GVlt1Layout.setHorizontalGroup(
            GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(GVlt1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel24, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel25, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel26, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField17, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)
                    .addComponent(jTextField18)
                    .addComponent(jTextField19, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField20, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField21, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jButton4)
                    .addComponent(jButton3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel29, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel28, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTextField22, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField23, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(166, 166, 166))
        );
        GVlt1Layout.setVerticalGroup(
            GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(GVlt1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(GVlt1Layout.createSequentialGroup()
                        .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel28)
                            .addComponent(jTextField22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 116, Short.MAX_VALUE)
                        .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel29)
                            .addComponent(jTextField23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(GVlt1Layout.createSequentialGroup()
                            .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel22)
                                .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel23)
                                .addComponent(jTextField17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jButton3))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel24)
                                .addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jButton4))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel25)
                                .addComponent(jTextField19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel26)
                                .addComponent(jTextField20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(GVlt1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel27)
                                .addComponent(jTextField21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        jTable4.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {"33", "214", null, "Editor", "12/02/09", "---", "No Asignado"},
                {"34", "215", null, "Impresor", "12/02/09", "---", "No Asignado"},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null}
            },
            new String [] {
                "ID", "ID Linea Pedido", "Trabajador", "Tipo", "Fecha Inicial", "Fecha Termino", "Estado"
            }
        ));
        jScrollPane6.setViewportView(jTable4);

        javax.swing.GroupLayout GVlt2Layout = new javax.swing.GroupLayout(GVlt2);
        GVlt2.setLayout(GVlt2Layout);
        GVlt2Layout.setHorizontalGroup(
            GVlt2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 720, Short.MAX_VALUE)
        );
        GVlt2Layout.setVerticalGroup(
            GVlt2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout GVltLayout = new javax.swing.GroupLayout(GVlt);
        GVlt.setLayout(GVltLayout);
        GVltLayout.setHorizontalGroup(
            GVltLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, GVltLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(GVltLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(GVlt2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(GVlt1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 720, Short.MAX_VALUE))
                .addContainerGap())
        );
        GVltLayout.setVerticalGroup(
            GVltLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(GVltLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(GVlt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(GVlt2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        PestaniaGestionVenta.addTab("Linea Tarea", GVlt);

        jTable2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "Nº Comprobante", "Cliente", "Total", "Saldo", "Estado"
            }
        ));
        GVlpv1.setViewportView(jTable2);
        jTable2.getColumnModel().getColumn(0).setPreferredWidth(50);
        jTable2.getColumnModel().getColumn(0).setMaxWidth(50);
        jTable2.getColumnModel().getColumn(1).setPreferredWidth(100);
        jTable2.getColumnModel().getColumn(2).setPreferredWidth(80);
        jTable2.getColumnModel().getColumn(2).setMaxWidth(80);
        jTable2.getColumnModel().getColumn(3).setPreferredWidth(200);

        javax.swing.GroupLayout GVpedidoVentaLayout = new javax.swing.GroupLayout(GVpedidoVenta);
        GVpedidoVenta.setLayout(GVpedidoVentaLayout);
        GVpedidoVentaLayout.setHorizontalGroup(
            GVpedidoVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(GVlpv1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 720, Short.MAX_VALUE)
        );
        GVpedidoVentaLayout.setVerticalGroup(
            GVpedidoVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(GVlpv1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout GVlpvLayout = new javax.swing.GroupLayout(GVlpv);
        GVlpv.setLayout(GVlpvLayout);
        GVlpvLayout.setHorizontalGroup(
            GVlpvLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, GVlpvLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(GVpedidoVenta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        GVlpvLayout.setVerticalGroup(
            GVlpvLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, GVlpvLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(GVpedidoVenta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        PestaniaGestionVenta.addTab("Pedidos de Venta", GVlpv);

        SubPanelRecursosInicialesImpresion.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Recursos iniciales", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 153, 204))); // NOI18N

        labelBobinaVolumenImpresion.setText("Bobina:");

        labelComplejidadImpresion.setText("Volumen de impresión:");

        labelPrecioUnitarioInd.setText("Precio unitario:");

        txtPrecioUnitarioInd.setBackground(new java.awt.Color(204, 255, 255));
        txtPrecioUnitarioInd.setEditable(false);

        javax.swing.GroupLayout pcRecursosInicialesImpresionLayout = new javax.swing.GroupLayout(pcRecursosInicialesImpresion);
        pcRecursosInicialesImpresion.setLayout(pcRecursosInicialesImpresionLayout);
        pcRecursosInicialesImpresionLayout.setHorizontalGroup(
            pcRecursosInicialesImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcRecursosInicialesImpresionLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelBobinaVolumenImpresion)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(cboBobinaVolumenImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(labelComplejidadImpresion)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(cboComplejidadImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addComponent(labelPrecioUnitarioInd)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtPrecioUnitarioInd, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pcRecursosInicialesImpresionLayout.setVerticalGroup(
            pcRecursosInicialesImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcRecursosInicialesImpresionLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pcRecursosInicialesImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelBobinaVolumenImpresion)
                    .addComponent(cboBobinaVolumenImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelComplejidadImpresion)
                    .addComponent(cboComplejidadImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtPrecioUnitarioInd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelPrecioUnitarioInd))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout SubPanelRecursosInicialesImpresionLayout = new javax.swing.GroupLayout(SubPanelRecursosInicialesImpresion);
        SubPanelRecursosInicialesImpresion.setLayout(SubPanelRecursosInicialesImpresionLayout);
        SubPanelRecursosInicialesImpresionLayout.setHorizontalGroup(
            SubPanelRecursosInicialesImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pcRecursosInicialesImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        SubPanelRecursosInicialesImpresionLayout.setVerticalGroup(
            SubPanelRecursosInicialesImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelRecursosInicialesImpresionLayout.createSequentialGroup()
                .addComponent(pcRecursosInicialesImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        SubPanelServicioDirigido.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Servicio dirigido", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 153, 204))); // NOI18N

        labelDimensionFoto.setText("Dimensión de foto:");

        labelTipoCliente.setText("Tipo de cliente:");

        javax.swing.GroupLayout pcServicioDirigidoLayout = new javax.swing.GroupLayout(pcServicioDirigido);
        pcServicioDirigido.setLayout(pcServicioDirigidoLayout);
        pcServicioDirigidoLayout.setHorizontalGroup(
            pcServicioDirigidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcServicioDirigidoLayout.createSequentialGroup()
                .addComponent(labelDimensionFoto)
                .addGap(32, 32, 32)
                .addComponent(cboDimensionFotoImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addComponent(labelTipoCliente)
                .addGap(18, 18, 18)
                .addComponent(cboTipoClienteImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pcServicioDirigidoLayout.setVerticalGroup(
            pcServicioDirigidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcServicioDirigidoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pcServicioDirigidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelDimensionFoto)
                    .addComponent(labelTipoCliente)
                    .addComponent(cboTipoClienteImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cboDimensionFotoImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        labelPrecioUnitarioInd1.setText("Precio unitario (S/.):");

        txtPrecioUnitarioServicioImpresion.setText("0.00");

        checkIncluirEnOfertasImpresion.setText("Incluir en ofertas");

        javax.swing.GroupLayout SubPanelServicioDirigidoLayout = new javax.swing.GroupLayout(SubPanelServicioDirigido);
        SubPanelServicioDirigido.setLayout(SubPanelServicioDirigidoLayout);
        SubPanelServicioDirigidoLayout.setHorizontalGroup(
            SubPanelServicioDirigidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelServicioDirigidoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(SubPanelServicioDirigidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pcServicioDirigido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(SubPanelServicioDirigidoLayout.createSequentialGroup()
                        .addComponent(labelPrecioUnitarioInd1)
                        .addGap(28, 28, 28)
                        .addComponent(txtPrecioUnitarioServicioImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(27, 27, 27)
                        .addComponent(checkIncluirEnOfertasImpresion)))
                .addContainerGap(73, Short.MAX_VALUE))
        );
        SubPanelServicioDirigidoLayout.setVerticalGroup(
            SubPanelServicioDirigidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelServicioDirigidoLayout.createSequentialGroup()
                .addComponent(pcServicioDirigido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(SubPanelServicioDirigidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtPrecioUnitarioServicioImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelPrecioUnitarioInd1)
                    .addComponent(checkIncluirEnOfertasImpresion))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        btnAgregarServicioImpresion.setText("Agregar servicio");
        btnAgregarServicioImpresion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgregarServicioImpresionActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout PanelNuevoServicioImpresionLayout = new javax.swing.GroupLayout(PanelNuevoServicioImpresion);
        PanelNuevoServicioImpresion.setLayout(PanelNuevoServicioImpresionLayout);
        PanelNuevoServicioImpresionLayout.setHorizontalGroup(
            PanelNuevoServicioImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelNuevoServicioImpresionLayout.createSequentialGroup()
                .addGap(286, 286, 286)
                .addComponent(btnAgregarServicioImpresion)
                .addContainerGap(341, Short.MAX_VALUE))
            .addGroup(PanelNuevoServicioImpresionLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelNuevoServicioImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(SubPanelServicioDirigido, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(SubPanelRecursosInicialesImpresion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(49, 49, 49))
        );
        PanelNuevoServicioImpresionLayout.setVerticalGroup(
            PanelNuevoServicioImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelNuevoServicioImpresionLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(SubPanelRecursosInicialesImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(SubPanelServicioDirigido, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnAgregarServicioImpresion)
                .addGap(406, 406, 406))
        );

        PestaniaGestionVenta.addTab("Nuevo Servicio Impresión", PanelNuevoServicioImpresion);

        SubPanelReporteServiciosImpresion.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Servicios de impresión registrados", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 153, 204))); // NOI18N

        tablaServiciosImpresion.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null}
            },
            new String [] {
                "Bobina", "Volumen de impresión", "Dimensión de foto", "Tipo cliente", "Precio", "Ofertar"
            }
        ));
        scrollTablaServiciosImpresion.setViewportView(tablaServiciosImpresion);

        javax.swing.GroupLayout pcReporteServiciosImpresionLayout = new javax.swing.GroupLayout(pcReporteServiciosImpresion);
        pcReporteServiciosImpresion.setLayout(pcReporteServiciosImpresionLayout);
        pcReporteServiciosImpresionLayout.setHorizontalGroup(
            pcReporteServiciosImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 571, Short.MAX_VALUE)
            .addGroup(pcReporteServiciosImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pcReporteServiciosImpresionLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(scrollTablaServiciosImpresion, javax.swing.GroupLayout.DEFAULT_SIZE, 551, Short.MAX_VALUE)
                    .addContainerGap()))
        );
        pcReporteServiciosImpresionLayout.setVerticalGroup(
            pcReporteServiciosImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 445, Short.MAX_VALUE)
            .addGroup(pcReporteServiciosImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pcReporteServiciosImpresionLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(scrollTablaServiciosImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );

        javax.swing.GroupLayout SubPanelReporteServiciosImpresionLayout = new javax.swing.GroupLayout(SubPanelReporteServiciosImpresion);
        SubPanelReporteServiciosImpresion.setLayout(SubPanelReporteServiciosImpresionLayout);
        SubPanelReporteServiciosImpresionLayout.setHorizontalGroup(
            SubPanelReporteServiciosImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelReporteServiciosImpresionLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pcReporteServiciosImpresion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        SubPanelReporteServiciosImpresionLayout.setVerticalGroup(
            SubPanelReporteServiciosImpresionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelReporteServiciosImpresionLayout.createSequentialGroup()
                .addComponent(pcReporteServiciosImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout PanelServicioImpresionRegistradoLayout = new javax.swing.GroupLayout(PanelServicioImpresionRegistrado);
        PanelServicioImpresionRegistrado.setLayout(PanelServicioImpresionRegistradoLayout);
        PanelServicioImpresionRegistradoLayout.setHorizontalGroup(
            PanelServicioImpresionRegistradoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelServicioImpresionRegistradoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(SubPanelReporteServiciosImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(127, Short.MAX_VALUE))
        );
        PanelServicioImpresionRegistradoLayout.setVerticalGroup(
            PanelServicioImpresionRegistradoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelServicioImpresionRegistradoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(SubPanelReporteServiciosImpresion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        PestaniaGestionVenta.addTab("Servicios Impresión registrados", PanelServicioImpresionRegistrado);

        SubPanelRecursosInicialesEdicion.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Recursos iniciales", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 153, 204))); // NOI18N

        labelTipoEdicion.setText("Tipo de edición:");

        labelComplejidadEdicion.setText("Complejidad:");

        javax.swing.GroupLayout pcRecursosInicialesEdicionLayout = new javax.swing.GroupLayout(pcRecursosInicialesEdicion);
        pcRecursosInicialesEdicion.setLayout(pcRecursosInicialesEdicionLayout);
        pcRecursosInicialesEdicionLayout.setHorizontalGroup(
            pcRecursosInicialesEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcRecursosInicialesEdicionLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelTipoEdicion)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(cboTipoEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(48, 48, 48)
                .addComponent(labelComplejidadEdicion)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(cboComplejidadEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pcRecursosInicialesEdicionLayout.setVerticalGroup(
            pcRecursosInicialesEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcRecursosInicialesEdicionLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pcRecursosInicialesEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelTipoEdicion)
                    .addComponent(labelComplejidadEdicion)
                    .addComponent(cboComplejidadEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cboTipoEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout SubPanelRecursosInicialesEdicionLayout = new javax.swing.GroupLayout(SubPanelRecursosInicialesEdicion);
        SubPanelRecursosInicialesEdicion.setLayout(SubPanelRecursosInicialesEdicionLayout);
        SubPanelRecursosInicialesEdicionLayout.setHorizontalGroup(
            SubPanelRecursosInicialesEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelRecursosInicialesEdicionLayout.createSequentialGroup()
                .addComponent(pcRecursosInicialesEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(493, Short.MAX_VALUE))
        );
        SubPanelRecursosInicialesEdicionLayout.setVerticalGroup(
            SubPanelRecursosInicialesEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelRecursosInicialesEdicionLayout.createSequentialGroup()
                .addComponent(pcRecursosInicialesEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        SubPanelServicioDirigidoEdicion.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Servicio dirigido", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 153, 204))); // NOI18N

        labelDimensionFotoEdicion.setText("Dimensión de foto:");

        labelTipoClienteEdicion.setText("Tipo de cliente:");

        labelPrecioUnitarioServicioEdicion.setText("Precio unitario (S/.):");

        txtPrecioUnitarioServicioEdicion.setText("0.00");

        checkIncluirEnOfertasEdicion.setText("Incluir en ofertas");

        javax.swing.GroupLayout pcServicioDirigidoEdicionLayout = new javax.swing.GroupLayout(pcServicioDirigidoEdicion);
        pcServicioDirigidoEdicion.setLayout(pcServicioDirigidoEdicionLayout);
        pcServicioDirigidoEdicionLayout.setHorizontalGroup(
            pcServicioDirigidoEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pcServicioDirigidoEdicionLayout.createSequentialGroup()
                .addGap(4, 4, 4)
                .addGroup(pcServicioDirigidoEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pcServicioDirigidoEdicionLayout.createSequentialGroup()
                        .addComponent(labelDimensionFotoEdicion)
                        .addGap(17, 17, 17)
                        .addComponent(cboDimensionFotoEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(47, 47, 47))
                    .addGroup(pcServicioDirigidoEdicionLayout.createSequentialGroup()
                        .addComponent(labelPrecioUnitarioServicioEdicion)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtPrecioUnitarioServicioEdicion, javax.swing.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pcServicioDirigidoEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pcServicioDirigidoEdicionLayout.createSequentialGroup()
                        .addComponent(labelTipoClienteEdicion)
                        .addGap(10, 10, 10)
                        .addComponent(cboTipoClienteEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(checkIncluirEnOfertasEdicion))
                .addGap(84, 84, 84))
        );
        pcServicioDirigidoEdicionLayout.setVerticalGroup(
            pcServicioDirigidoEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcServicioDirigidoEdicionLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pcServicioDirigidoEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pcServicioDirigidoEdicionLayout.createSequentialGroup()
                        .addGroup(pcServicioDirigidoEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelTipoClienteEdicion)
                            .addComponent(cboTipoClienteEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(checkIncluirEnOfertasEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pcServicioDirigidoEdicionLayout.createSequentialGroup()
                        .addGroup(pcServicioDirigidoEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelDimensionFotoEdicion)
                            .addComponent(cboDimensionFotoEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pcServicioDirigidoEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelPrecioUnitarioServicioEdicion)
                            .addComponent(txtPrecioUnitarioServicioEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout SubPanelServicioDirigidoEdicionLayout = new javax.swing.GroupLayout(SubPanelServicioDirigidoEdicion);
        SubPanelServicioDirigidoEdicion.setLayout(SubPanelServicioDirigidoEdicionLayout);
        SubPanelServicioDirigidoEdicionLayout.setHorizontalGroup(
            SubPanelServicioDirigidoEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelServicioDirigidoEdicionLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pcServicioDirigidoEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(397, Short.MAX_VALUE))
        );
        SubPanelServicioDirigidoEdicionLayout.setVerticalGroup(
            SubPanelServicioDirigidoEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pcServicioDirigidoEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        btnAgregarServicioEdicion.setText("Agregar servicio");
        btnAgregarServicioEdicion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgregarServicioEdicionActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout PanelNuevoServicioEdicionLayout = new javax.swing.GroupLayout(PanelNuevoServicioEdicion);
        PanelNuevoServicioEdicion.setLayout(PanelNuevoServicioEdicionLayout);
        PanelNuevoServicioEdicionLayout.setHorizontalGroup(
            PanelNuevoServicioEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelNuevoServicioEdicionLayout.createSequentialGroup()
                .addGroup(PanelNuevoServicioEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PanelNuevoServicioEdicionLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(PanelNuevoServicioEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(SubPanelServicioDirigidoEdicion, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(SubPanelRecursosInicialesEdicion, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(PanelNuevoServicioEdicionLayout.createSequentialGroup()
                        .addGap(309, 309, 309)
                        .addComponent(btnAgregarServicioEdicion)))
                .addContainerGap())
        );
        PanelNuevoServicioEdicionLayout.setVerticalGroup(
            PanelNuevoServicioEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelNuevoServicioEdicionLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(SubPanelRecursosInicialesEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(SubPanelServicioDirigidoEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnAgregarServicioEdicion)
                .addContainerGap(51, Short.MAX_VALUE))
        );

        PestaniaGestionVenta.addTab("Nuevo Servicio Edición", PanelNuevoServicioEdicion);

        SubPanelReporteServiciosEdicion.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Servicios de edición registrados", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 153, 204))); // NOI18N

        tablaServiciosEdicion.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null}
            },
            new String [] {
                "Tipo edición", "Complejidad edición", "Dimensión de foto", "Tipo cliente", "Precio", "Ofertar"
            }
        ));
        scrollTablaServiciosEdicion.setViewportView(tablaServiciosEdicion);

        javax.swing.GroupLayout pcReporteServiciosEdicionLayout = new javax.swing.GroupLayout(pcReporteServiciosEdicion);
        pcReporteServiciosEdicion.setLayout(pcReporteServiciosEdicionLayout);
        pcReporteServiciosEdicionLayout.setHorizontalGroup(
            pcReporteServiciosEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 571, Short.MAX_VALUE)
            .addGroup(pcReporteServiciosEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pcReporteServiciosEdicionLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(scrollTablaServiciosEdicion, javax.swing.GroupLayout.DEFAULT_SIZE, 551, Short.MAX_VALUE)
                    .addContainerGap()))
        );
        pcReporteServiciosEdicionLayout.setVerticalGroup(
            pcReporteServiciosEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 445, Short.MAX_VALUE)
            .addGroup(pcReporteServiciosEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pcReporteServiciosEdicionLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(scrollTablaServiciosEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );

        javax.swing.GroupLayout SubPanelReporteServiciosEdicionLayout = new javax.swing.GroupLayout(SubPanelReporteServiciosEdicion);
        SubPanelReporteServiciosEdicion.setLayout(SubPanelReporteServiciosEdicionLayout);
        SubPanelReporteServiciosEdicionLayout.setHorizontalGroup(
            SubPanelReporteServiciosEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelReporteServiciosEdicionLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pcReporteServiciosEdicion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        SubPanelReporteServiciosEdicionLayout.setVerticalGroup(
            SubPanelReporteServiciosEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SubPanelReporteServiciosEdicionLayout.createSequentialGroup()
                .addComponent(pcReporteServiciosEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout PanelServicioEdicionRegistradoLayout = new javax.swing.GroupLayout(PanelServicioEdicionRegistrado);
        PanelServicioEdicionRegistrado.setLayout(PanelServicioEdicionRegistradoLayout);
        PanelServicioEdicionRegistradoLayout.setHorizontalGroup(
            PanelServicioEdicionRegistradoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelServicioEdicionRegistradoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(SubPanelReporteServiciosEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(127, Short.MAX_VALUE))
        );
        PanelServicioEdicionRegistradoLayout.setVerticalGroup(
            PanelServicioEdicionRegistradoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelServicioEdicionRegistradoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(SubPanelReporteServiciosEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        PestaniaGestionVenta.addTab("Servicios Edición registrados", PanelServicioEdicionRegistrado);

        jToolBar1.setRollover(true);
        jToolBar1.setBorderPainted(false);

        GVBotonNuevo.setIcon(new ImageIcon(getClass().getResource("/Images/add.png")));
        GVBotonNuevo.setText("Nuevo");
        GVBotonNuevo.setToolTipText("Nuevo");
        GVBotonNuevo.setFocusable(false);
        GVBotonNuevo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        GVBotonNuevo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        GVBotonNuevo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                GVBotonNuevoActionPerformed(evt);
            }
        });
        jToolBar1.add(GVBotonNuevo);

        GVBotonVerTodos.setIcon(new ImageIcon(getClass().getResource("/Images/clipboard_text.png")));
        GVBotonVerTodos.setText("Ver Todos");
        GVBotonVerTodos.setToolTipText("Ver Todos");
        GVBotonVerTodos.setFocusable(false);
        GVBotonVerTodos.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        GVBotonVerTodos.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        GVBotonVerTodos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                GVBotonVerTodosActionPerformed(evt);
            }
        });
        jToolBar1.add(GVBotonVerTodos);

        GVBotonBuscar.setIcon(new ImageIcon(getClass().getResource("/Images/find.png")));
        GVBotonBuscar.setText("Buscar");
        GVBotonBuscar.setToolTipText("Buscar");
        GVBotonBuscar.setFocusable(false);
        GVBotonBuscar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        GVBotonBuscar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(GVBotonBuscar);

        GVBotonEliminar.setIcon(new ImageIcon(getClass().getResource("/Images/delete.png")));
        GVBotonEliminar.setText("Eliminar");
        GVBotonEliminar.setToolTipText("Eliminar");
        GVBotonEliminar.setFocusable(false);
        GVBotonEliminar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        GVBotonEliminar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(GVBotonEliminar);

        jButton2.setIcon(new ImageIcon(getClass().getResource("/Images/disk.png")));
        jButton2.setText("Guardar");
        jButton2.setFocusable(false);
        jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(jButton2);

        javax.swing.GroupLayout PanelGestionVentaLayout = new javax.swing.GroupLayout(PanelGestionVenta);
        PanelGestionVenta.setLayout(PanelGestionVentaLayout);
        PanelGestionVentaLayout.setHorizontalGroup(
            PanelGestionVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelGestionVentaLayout.createSequentialGroup()
                .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addComponent(PestaniaGestionVenta, javax.swing.GroupLayout.DEFAULT_SIZE, 745, Short.MAX_VALUE)
        );
        PanelGestionVentaLayout.setVerticalGroup(
            PanelGestionVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelGestionVentaLayout.createSequentialGroup()
                .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(PestaniaGestionVenta, javax.swing.GroupLayout.DEFAULT_SIZE, 324, Short.MAX_VALUE))
        );

        PanelGestionReportes.setBorder(javax.swing.BorderFactory.createTitledBorder("Gestion Reportes"));

        TablaReporteTrabajadores.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        TablaReporteTrabajadores.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                TablaReporteTrabajadoresMouseClicked(evt);
            }
        });
        jScrollPane7.setViewportView(TablaReporteTrabajadores);

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder("Reporte de Trabajadores"));

        jLabel30.setText("Ordernar por:");

        jLabel31.setText("Buscar por:");

        jLabel32.setText("Buscar:");

        TrabajadorOrdenar.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nombres", "DNI", "Nacimiento", "Fecha de Ingreso" }));
        TrabajadorOrdenar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TrabajadorOrdenarActionPerformed(evt);
            }
        });

        TrabajadorPor.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nombres", "DNI" }));
        TrabajadorPor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TrabajadorPorActionPerformed(evt);
            }
        });

        TrabajadorBusca.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                TrabajadorBuscaKeyTyped(evt);
            }
        });

        BotonReporteTrabajadoresMostrarTodo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/clipboard_text.png"))); // NOI18N
        BotonReporteTrabajadoresMostrarTodo.setText("Mostrar Todos");
        BotonReporteTrabajadoresMostrarTodo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonReporteTrabajadoresMostrarTodoActionPerformed(evt);
            }
        });

        jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);

        BotonReporteTrabajadoresImprimir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/doc_pdf.png"))); // NOI18N
        BotonReporteTrabajadoresImprimir.setText("Imprimir");
        BotonReporteTrabajadoresImprimir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonReporteTrabajadoresImprimirActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel32)
                    .addComponent(jLabel31)
                    .addComponent(jLabel30))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(TrabajadorBusca, javax.swing.GroupLayout.PREFERRED_SIZE, 374, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(TrabajadorPor, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(TrabajadorOrdenar, 0, 119, Short.MAX_VALUE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 59, Short.MAX_VALUE)
                .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(BotonReporteTrabajadoresImprimir, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(BotonReporteTrabajadoresMostrarTodo, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(BotonReporteTrabajadoresImprimir)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(BotonReporteTrabajadoresMostrarTodo))
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel9Layout.createSequentialGroup()
                            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel30)
                                .addComponent(TrabajadorOrdenar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel31)
                                .addComponent(TrabajadorPor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel32)
                                .addComponent(TrabajadorBusca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 76, Short.MAX_VALUE)))
                .addContainerGap())
        );

        javax.swing.GroupLayout PanelReporteTrabajadoresLayout = new javax.swing.GroupLayout(PanelReporteTrabajadores);
        PanelReporteTrabajadores.setLayout(PanelReporteTrabajadoresLayout);
        PanelReporteTrabajadoresLayout.setHorizontalGroup(
            PanelReporteTrabajadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelReporteTrabajadoresLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelReporteTrabajadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 700, Short.MAX_VALUE)
                    .addComponent(jPanel9, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        PanelReporteTrabajadoresLayout.setVerticalGroup(
            PanelReporteTrabajadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelReporteTrabajadoresLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 28, Short.MAX_VALUE)
                .addContainerGap())
        );

        PestaniaReportes.addTab("Trabajadores", PanelReporteTrabajadores);

        jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder("Reporte de Proveedores"));

        jLabel33.setText("Ordernar por:");

        jLabel34.setText("Buscar por:");

        jLabel35.setText("Buscar:");

        ProveedorOrdenar.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nombres", "RUC" }));
        ProveedorOrdenar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ProveedorOrdenarActionPerformed(evt);
            }
        });

        ProveedorPor.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nombres", "RUC" }));
        ProveedorPor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ProveedorPorActionPerformed(evt);
            }
        });

        ProveedorBusca.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                ProveedorBuscaKeyTyped(evt);
            }
        });

        BotonReporteProveedoresMostrarTodo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/clipboard_text.png"))); // NOI18N
        BotonReporteProveedoresMostrarTodo.setText("Mostrar Todos");
        BotonReporteProveedoresMostrarTodo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonReporteProveedoresMostrarTodoActionPerformed(evt);
            }
        });

        jSeparator4.setOrientation(javax.swing.SwingConstants.VERTICAL);

        BotonReporteProveedoresImprimir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/doc_pdf.png"))); // NOI18N
        BotonReporteProveedoresImprimir.setText("Imprimir");
        BotonReporteProveedoresImprimir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonReporteProveedoresImprimirActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel35)
                    .addComponent(jLabel34)
                    .addComponent(jLabel33))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(ProveedorBusca, javax.swing.GroupLayout.PREFERRED_SIZE, 374, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(ProveedorPor, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(ProveedorOrdenar, javax.swing.GroupLayout.Alignment.LEADING, 0, 119, Short.MAX_VALUE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 59, Short.MAX_VALUE)
                .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(BotonReporteProveedoresImprimir, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(BotonReporteProveedoresMostrarTodo, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel10Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(BotonReporteProveedoresImprimir)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(BotonReporteProveedoresMostrarTodo))
                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel10Layout.createSequentialGroup()
                            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel33)
                                .addComponent(ProveedorOrdenar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel34)
                                .addComponent(ProveedorPor, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel35)
                                .addComponent(ProveedorBusca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addComponent(jSeparator4, javax.swing.GroupLayout.DEFAULT_SIZE, 76, Short.MAX_VALUE)))
                .addContainerGap())
        );

        TablaReporteProveedores.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        TablaReporteProveedores.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                TablaReporteProveedoresMouseClicked(evt);
            }
        });
        jScrollPane8.setViewportView(TablaReporteProveedores);

        javax.swing.GroupLayout PanelReporteProveedoresLayout = new javax.swing.GroupLayout(PanelReporteProveedores);
        PanelReporteProveedores.setLayout(PanelReporteProveedoresLayout);
        PanelReporteProveedoresLayout.setHorizontalGroup(
            PanelReporteProveedoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelReporteProveedoresLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelReporteProveedoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 700, Short.MAX_VALUE))
                .addContainerGap())
        );
        PanelReporteProveedoresLayout.setVerticalGroup(
            PanelReporteProveedoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelReporteProveedoresLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 28, Short.MAX_VALUE)
                .addContainerGap())
        );

        PestaniaReportes.addTab("Proveedores", PanelReporteProveedores);

        jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder("Reporte de Proveedores"));

        jLabel36.setText("Ordernar por:");

        jLabel37.setText("Buscar por:");

        jLabel38.setText("Buscar:");

        ClienterOrdenar.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nombres", "DNI/RUC", "Nacimiento" }));
        ClienterOrdenar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ClienterOrdenarActionPerformed(evt);
            }
        });

        ClientePor.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nombres", "DNI/RUC" }));
        ClientePor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ClientePorActionPerformed(evt);
            }
        });

        ClienteBusca.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                ClienteBuscaKeyTyped(evt);
            }
        });

        BotonReporteClienteMostrarTodo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/clipboard_text.png"))); // NOI18N
        BotonReporteClienteMostrarTodo.setText("Mostrar Todos");
        BotonReporteClienteMostrarTodo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonReporteClienteMostrarTodoActionPerformed(evt);
            }
        });

        jSeparator5.setOrientation(javax.swing.SwingConstants.VERTICAL);

        BotonReporteClientesImprimir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/doc_pdf.png"))); // NOI18N
        BotonReporteClientesImprimir.setText("Imprimir");
        BotonReporteClientesImprimir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonReporteClientesImprimirActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel38)
                    .addComponent(jLabel37)
                    .addComponent(jLabel36))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(ClienteBusca, javax.swing.GroupLayout.PREFERRED_SIZE, 374, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(ClientePor, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(ClienterOrdenar, 0, 119, Short.MAX_VALUE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 59, Short.MAX_VALUE)
                .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(BotonReporteClientesImprimir, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(BotonReporteClienteMostrarTodo, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(BotonReporteClientesImprimir)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(BotonReporteClienteMostrarTodo))
                    .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel11Layout.createSequentialGroup()
                            .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel36)
                                .addComponent(ClienterOrdenar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel37)
                                .addComponent(ClientePor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel38)
                                .addComponent(ClienteBusca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addComponent(jSeparator5, javax.swing.GroupLayout.DEFAULT_SIZE, 76, Short.MAX_VALUE)))
                .addContainerGap())
        );

        TablaReporteClientes.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        TablaReporteClientes.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                TablaReporteClientesMouseClicked(evt);
            }
        });
        jScrollPane9.setViewportView(TablaReporteClientes);

        javax.swing.GroupLayout PanelReporteClientesLayout = new javax.swing.GroupLayout(PanelReporteClientes);
        PanelReporteClientes.setLayout(PanelReporteClientesLayout);
        PanelReporteClientesLayout.setHorizontalGroup(
            PanelReporteClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelReporteClientesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelReporteClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 700, Short.MAX_VALUE))
                .addContainerGap())
        );
        PanelReporteClientesLayout.setVerticalGroup(
            PanelReporteClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelReporteClientesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 28, Short.MAX_VALUE)
                .addContainerGap())
        );

        PestaniaReportes.addTab("Clientes", PanelReporteClientes);

        javax.swing.GroupLayout PanelGestionReportesLayout = new javax.swing.GroupLayout(PanelGestionReportes);
        PanelGestionReportes.setLayout(PanelGestionReportesLayout);
        PanelGestionReportesLayout.setHorizontalGroup(
            PanelGestionReportesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelGestionReportesLayout.createSequentialGroup()
                .addComponent(PestaniaReportes, javax.swing.GroupLayout.DEFAULT_SIZE, 725, Short.MAX_VALUE)
                .addContainerGap())
        );
        PanelGestionReportesLayout.setVerticalGroup(
            PanelGestionReportesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(PestaniaReportes)
        );

        javax.swing.GroupLayout PanelContenedorLayout = new javax.swing.GroupLayout(PanelContenedor);
        PanelContenedor.setLayout(PanelContenedorLayout);
        PanelContenedorLayout.setHorizontalGroup(
            PanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelContenedorLayout.createSequentialGroup()
                .addComponent(PanelGestionReportes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(10, 10, 10))
            .addComponent(PanelGestionVenta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        PanelContenedorLayout.setVerticalGroup(
            PanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelContenedorLayout.createSequentialGroup()
                .addComponent(PanelGestionVenta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(PanelGestionReportes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        Principal.setRightComponent(PanelContenedor);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Principal, javax.swing.GroupLayout.DEFAULT_SIZE, 930, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Principal, javax.swing.GroupLayout.DEFAULT_SIZE, 654, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel3.setBounds(0, 40, 940, 610);
        desktopPane.add(jPanel3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        menuBar.setToolTipText("");

        fileMenu.setText("Archivo");

        openMenuItem.setText("Iniciar Sesión");
        fileMenu.add(openMenuItem);

        saveMenuItem.setText("Editar Usuario");
        fileMenu.add(saveMenuItem);

        saveAsMenuItem.setText("Cerrar Sesion");
        fileMenu.add(saveAsMenuItem);
        fileMenu.add(jSeparator1);

        exitMenuItem.setText("Salir");
        exitMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exitMenuItemActionPerformed(evt);
            }
        });
        fileMenu.add(exitMenuItem);

        menuBar.add(fileMenu);

        jMenu2.setText("Administración");

        jMenu3.setText("Datos Cliente");

        MenuAdminRegCliente.setText("Registrar Cliente");
        MenuAdminRegCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuAdminRegClienteActionPerformed(evt);
            }
        });
        jMenu3.add(MenuAdminRegCliente);

        MenuAdminModCliente.setText("Modificar Cliente");
        MenuAdminModCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuAdminModClienteActionPerformed(evt);
            }
        });
        jMenu3.add(MenuAdminModCliente);

        jMenu2.add(jMenu3);

        MenuAdminRegistro.setText("Datos Trabajador");

        MenuAdminRegTrabajador.setText("Registrar Trabajador");
        MenuAdminRegTrabajador.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuAdminRegTrabajadorActionPerformed(evt);
            }
        });
        MenuAdminRegistro.add(MenuAdminRegTrabajador);

        MenuAdminModiTrab.setText("Modificar Trabajador");
        MenuAdminModiTrab.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuAdminModiTrabActionPerformed(evt);
            }
        });
        MenuAdminRegistro.add(MenuAdminModiTrab);

        jMenu2.add(MenuAdminRegistro);

        jMenu5.setText("Datos Proveedor");

        MenuAdminRegProveedor.setText("Registrar Proveedor");
        MenuAdminRegProveedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuAdminRegProveedorActionPerformed(evt);
            }
        });
        jMenu5.add(MenuAdminRegProveedor);

        MenuAdminModProveedor.setText("Modificar Proveedor");
        MenuAdminModProveedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuAdminModProveedorActionPerformed(evt);
            }
        });
        jMenu5.add(MenuAdminModProveedor);

        jMenu2.add(jMenu5);

        jMenu1.setText("Datos Productos");

        jMenuItem1.setText("Categoria Productos Mercaderia");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem1);

        jMenuItem4.setText("Complejidad de Impresión");
        jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem4ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem4);

        jMenuItem5.setText("Complejidad de Edición");
        jMenuItem5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem5ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem5);

        jMenuItem6.setText("Tipo de Edición");
        jMenuItem6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem6ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem6);

        jMenuItem7.setText("Tipo de Impresión");
        jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem7ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem7);

        jMenu2.add(jMenu1);

        MenuAdminDatos.setText("Datos");

        MenuAdminRegTipoCliente.setText("Tipo de Cliente");
        MenuAdminRegTipoCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuAdminRegTipoClienteActionPerformed(evt);
            }
        });
        MenuAdminDatos.add(MenuAdminRegTipoCliente);

        MenuAdminRegRolTrabajador.setText("Rol Trabajador");
        MenuAdminRegRolTrabajador.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuAdminRegRolTrabajadorActionPerformed(evt);
            }
        });
        MenuAdminDatos.add(MenuAdminRegRolTrabajador);

        jMenu2.add(MenuAdminDatos);

        jMenu4.setText("Dimensiones");

        jMenuItem8.setText("Dimensión Foto");
        jMenuItem8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem8ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem8);

        jMenuItem9.setText("Dimensión Bobina");
        jMenuItem9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem9ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem9);

        jMenu2.add(jMenu4);

        menuBar.add(jMenu2);

        helpMenu.setText("Ayuda");

        contentMenuItem.setText("Contenido");
        helpMenu.add(contentMenuItem);

        aboutMenuItem.setText("Nosotros");
        helpMenu.add(aboutMenuItem);

        menuBar.add(helpMenu);

        setJMenuBar(menuBar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(desktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 931, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(desktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 650, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitMenuItemActionPerformed
        System.exit(0);
    }//GEN-LAST:event_exitMenuItemActionPerformed

    private void MenuLeftValueChanged(javax.swing.event.TreeSelectionEvent evt) {//GEN-FIRST:event_MenuLeftValueChanged
        // TODO add your handling code here:
        // Get all nodes whose selection status has changed
        DefaultMutableTreeNode nodo = (DefaultMutableTreeNode)MenuLeft.getLastSelectedPathComponent();
        System.out.println("Nodos: "+nodo.toString());
        OcultarPaneles();

        //Ahora tenemos que removemos pestañas
        PestaniaGestionVenta.removeAll();

        //GESTION VENTAS : Pedido de Venta
        /* ESTA OPCION QUEDA DESCARTADAS
        if(nodo.toString().compareTo("Pedido de Venta")==0)
        {
            //Mostramos el Panel Gestion de Venta
            PanelGestionVenta.setVisible(true);
                                  
            // Pestaña Pedido Venta
            PestaniaGestionVenta.add("Datos de Pedido", GVpv);
            GVpv1.setVisible(false);
            GVpv2.setVisible(true);
            
            // Pestaña Linea Pedido Venta
            PestaniaGestionVenta.add("Linea Solicitud", GVlpv);
            GVlpv1.setVisible(false);
            GVlpv2.setVisible(true);

            //Pestaña Tarea
            PestaniaGestionVenta.add("Tarea", GVt);
            GVt1.setVisible(false);
            GVt2.setVisible(true);

            // Pestaña Linea Pedido Venta
            PestaniaGestionVenta.add("Linea Tarea", GVlt);
            GVlt1.setVisible(false);
            GVlt2.setVisible(true);
        }
         */
        if(nodo.toString().compareTo("Nuevo Pedido de Venta")==0)
        {
            //Mostramos el Panel Gestion de Venta
            PanelGestionVenta.setVisible(true);

            // Pestaña Pedido Venta
            PestaniaGestionVenta.add("Pedido Venta", PanelNuevoPedidoVenta);
            SubPanelDatosCliente.setVisible(true);
            SubPanelDatosComprobante.setVisible(true);
            SubPanelDatosLineaPedido.setVisible(true);
            
            //Pestaña Tarea
            PestaniaGestionVenta.add("Tarea", GVt);
            GVt.setEnabled(false);
            GVt1.setVisible(false);            
            GVt2.setVisible(true);
            
            // Pestaña Linea Pedido Venta
            PestaniaGestionVenta.add("Linea Tarea", GVlt);
            GVlt.setEnabled(true);
            GVlt1.setVisible(false);
            GVlt2.setVisible(true);


        }
        else if(nodo.toString().compareTo("Ver Pedidos de Venta")==0)
        {
            //Mostramos el Panel Gestion de Venta
            PanelGestionVenta.setVisible(true);
            //PanelGestionVenta.removeAll();
            // Pestaña Pedido Venta
            PestaniaGestionVenta.add("Pedidos de Venta", GVlpv);
            GVpedidoVenta.setVisible(true);
        }
/*
        //GESTION VENTAS : Edicion/Impresión
        else if(nodo.toString().compareTo("Edicion/Impresión")==0)
        {
            //Mostramos el Panel Gestion de Venta
            PanelGestionVenta.setVisible(true);
            //Ahora tenemos que removemos pestañas
            PestaniaGestionVenta.removeAll();
            //Agregamos pestañas
            PestaniaGestionVenta.add("Tarea", GVt);
            GVt1.setVisible(false);
            GVt2.setVisible(true);
            
            // Pestaña Linea Pedido Venta
            PestaniaGestionVenta.add("Linea Tarea", GVlt);
            GVlt1.setVisible(false);
            GVlt2.setVisible(true);
        }*/

        // GESTION REPORTES : Trabajadores
        else if(nodo.toString().compareTo("Trabajadores")==0) {
            //Mostramos Panel Gestion Venta
            PanelGestionReportes.setVisible(true);
            //Ahora removemos las pestañas
            PestaniaReportes.removeAll();
            // Agregamos Pestañas
            PestaniaReportes.add("Trabajadores", PanelReporteTrabajadores);
            // Mostramos datos en la tabla trabajadores por defecto
            CargarTablaTrabajadores("","",ReporTrabajadorOrden);
        }
        // GESTION REPORTES : Proveedores
        else if(nodo.toString().compareTo("Proveedores")==0) {
            //Mostramos Panel Gestion Venta
            PanelGestionReportes.setVisible(true);
            //Ahora removemos las pestañas
            PestaniaReportes.removeAll();
            // Agregamos Pestañas
            PestaniaReportes.add("Proveedores", PanelReporteProveedores);
            CargarTablaProveedores("","",ReporTrabajadorOrden);
        }
        // GESTION REPORTES : Clientes
        else if(nodo.toString().compareTo("Clientes")==0) {
            //Mostramos Panel Gestion Venta
            PanelGestionReportes.setVisible(true);
            //Ahora removemos las pestañas
            PestaniaReportes.removeAll();
            // Agregamos Pestañas
            PestaniaReportes.add("Clientes", PanelReporteClientes);
            CargarTablaClientes("","",ReporTrabajadorOrden);
        }
        
        // CONFIGURACION DE VENTAS: Gestion de Productos 
        else if( nodo.toString().compareTo("Servicio Impresión")==0 ){
            //Mostramos el Panel Gestion de Venta
            PanelGestionVenta.setVisible(true);

            //Se cargan datos de la base de datos a la aplicacion
            fillTablaProductosServicioImpresion();
            // Pestaña Pedido Venta
            PestaniaGestionVenta.add("Nuevo Servicio Impresión", PanelNuevoServicioImpresion);
            PestaniaGestionVenta.add("Servicios Impresión registrados", PanelServicioImpresionRegistrado);
            
            //Mostramos el Panel Gestion de Venta
            //PanelConfiguracionVenta1.setVisible(true);
            //PanelConfiguracionVenta1.add("Producto Servicio Impresion", CVpsi);
            //CVpsi.setVisible(true);
            //PanelConfiguracionVenta1.add("Producto Servicio Edicion", CVpse);
            //CVpse.setVisible(true);
            //PanelGestionVenta.setVisible(false);
            //Ahora tenemos que removemos pestañas
            //PestaniaGestionVenta.removeAll();
            //Agregamos pestañas
            //PestaniaGestionVenta.add("Productos Servicios Edicion", ProdServEdicion);
            //ProdServEdicion.setVisible(true);
            //PestaniaGestionVenta.add("Productos Servicios Impresion", ProdServImpresion);
            //ProdServImpresion.setVisible(true);
            //GVt2.setVisible(true);
            //PanelConfiguracionVenta.setVisible(true);
        }

        else if( nodo.toString().compareTo("Servicio Edición")==0 ){
            //Mostramos el Panel Gestion de Venta
            PanelGestionVenta.setVisible(true);

            //Se cargan datos de la base de datos a la aplicacion
            fillTablaProductosServicioEdicion();
            // Pestaña Pedido Venta
            PestaniaGestionVenta.add("Nuevo Servicio Edición", PanelNuevoServicioEdicion);
            PestaniaGestionVenta.add("Servicios Edición registrados", PanelServicioEdicionRegistrado);
        }

        

    }//GEN-LAST:event_MenuLeftValueChanged

    private void MenuAdminRegRolTrabajadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuAdminRegRolTrabajadorActionPerformed
        // TODO add your handling code here:        
        new AdminRegRolTrab(this,true).setVisible(true);
    }//GEN-LAST:event_MenuAdminRegRolTrabajadorActionPerformed

    private void MenuAdminRegTrabajadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuAdminRegTrabajadorActionPerformed
        // TODO add your handling code here:
        AdminRegTrabajador admin = new AdminRegTrabajador(this,true);
        admin.setVisible(true);
        if(admin.guardado==true)
            SeleccionarNodo(6);
    }//GEN-LAST:event_MenuAdminRegTrabajadorActionPerformed

    public void SeleccionarNodo(int nodo)
    {
        MenuLeft.expandRow(0);
        MenuLeft.expandRow(3);
        MenuLeft.expandRow(5);
        MenuLeft.setSelectionRow(nodo);
        CargarTablaTrabajadores(TrabajadorBusca.getText(), ReporTrabajadorPor, ReporTrabajadorOrden);
    }
    private void MenuAdminModiTrabActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuAdminModiTrabActionPerformed

        // Modificar Trabajador
        AdminModTrabajador admin = new AdminModTrabajador(this,true);
        admin.setVisible(true);
        if(admin.modificado==true)
            SeleccionarNodo(6);
    }//GEN-LAST:event_MenuAdminModiTrabActionPerformed

    // Label para ingresar el contenido a Buscar
    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed

        // Aqui se abre Interfaz Categoria Productos Mercaderia
        JDialog dialogo = new JDialog(this, true);
        dialogo.setContentPane(new AdminProductosCategoriaMercaderia());
        dialogo.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        dialogo.pack();
        dialogo.setTitle("Categoria Producto Mercaderia");
        dialogo.setLocationRelativeTo(this);
        dialogo.setVisible(true);
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void MenuAdminRegTipoClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuAdminRegTipoClienteActionPerformed
        // Interfaz de Tipo Cliente
        JDialog dialogo = new JDialog(this, true);
        dialogo.setContentPane(new AdminTipoCliente());
        dialogo.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        dialogo.pack();
        dialogo.setTitle("Tipo Cliente");
        dialogo.setLocationRelativeTo(this);
        dialogo.setVisible(true);
    }//GEN-LAST:event_MenuAdminRegTipoClienteActionPerformed

    private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem4ActionPerformed
        // Complejidad de Impresion

        JDialog dialogo = new JDialog(this, true);
        dialogo.setContentPane(new AdminProductosComplejImpresion());
        dialogo.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        dialogo.pack();
        dialogo.setTitle("Complejidad Impresión");
        dialogo.setLocationRelativeTo(this);
        dialogo.setVisible(true);
    }//GEN-LAST:event_jMenuItem4ActionPerformed

    private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem5ActionPerformed
        // Complejidad Edicion
        
        JDialog dialogo = new JDialog(this, true);
        dialogo.setContentPane(new AdminProductosComplejEdicion());
        dialogo.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        dialogo.pack();
        dialogo.setTitle("Complejidad Edicion");
        dialogo.setLocationRelativeTo(this);
        dialogo.setVisible(true);
    }//GEN-LAST:event_jMenuItem5ActionPerformed

    private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem6ActionPerformed
        // Tipo Edicion
        JDialog dialogo = new JDialog(this, true);
        dialogo.setContentPane(new AdminProductoTipoEdicion());
        dialogo.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        dialogo.pack();
        dialogo.setTitle("Tipo Edicion");
        dialogo.setLocationRelativeTo(this);
        dialogo.setVisible(true);
    }//GEN-LAST:event_jMenuItem6ActionPerformed

    private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem7ActionPerformed
        // Tipo Impresion

        JDialog dialogo = new JDialog(this, true);
        dialogo.setContentPane(new AdminProductoTipoImpresion());
        dialogo.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        dialogo.pack();
        dialogo.setTitle("Tipo Impresion");
        dialogo.setLocationRelativeTo(this);
        dialogo.setVisible(true);
    }//GEN-LAST:event_jMenuItem7ActionPerformed

    private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem8ActionPerformed
        // Dimension Foto
        JDialog dialogo = new JDialog(this, true);
        dialogo.setContentPane(new AdminDimensionFoto());
        dialogo.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        dialogo.pack();
        dialogo.setTitle("Dimensión de Foto");
        dialogo.setLocationRelativeTo(this);
        dialogo.setVisible(true);

    }//GEN-LAST:event_jMenuItem8ActionPerformed

    private void jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem9ActionPerformed
        // Dimensión Bobina
        JDialog dialogo = new JDialog(this, true);
        dialogo.setContentPane(new AdminDimensionBobina());
        dialogo.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        dialogo.pack();
        dialogo.setTitle("Dimensión de Bobina");
        dialogo.setLocationRelativeTo(this);
        dialogo.setVisible(true);

    }//GEN-LAST:event_jMenuItem9ActionPerformed

    private void MenuAdminRegClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuAdminRegClienteActionPerformed
        // Agregar Cliente
        new AdminRegCliente(this,true).setVisible(true);
    }//GEN-LAST:event_MenuAdminRegClienteActionPerformed

    private void MenuAdminModClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuAdminModClienteActionPerformed
        // TODO add your handling code here:
        new AdminModCliente(this,true).setVisible(true);
    }//GEN-LAST:event_MenuAdminModClienteActionPerformed

    private void MenuAdminRegProveedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuAdminRegProveedorActionPerformed
        // TODO add your handling code here:
        new AdminRegProveedor(this,true).setVisible(true);
    }//GEN-LAST:event_MenuAdminRegProveedorActionPerformed

    private void MenuAdminModProveedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuAdminModProveedorActionPerformed
        // TODO add your handling code here:
        new AdminModProveedor(this,true).setVisible(true);
    }//GEN-LAST:event_MenuAdminModProveedorActionPerformed

    private void TablaReporteClientesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_TablaReporteClientesMouseClicked
        // TODO add your handling code here:
}//GEN-LAST:event_TablaReporteClientesMouseClicked

    private void BotonReporteClientesImprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonReporteClientesImprimirActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_BotonReporteClientesImprimirActionPerformed

    private void BotonReporteClienteMostrarTodoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonReporteClienteMostrarTodoActionPerformed
        // TODO add your handling code here:
        CargarTablaClientes("","",ReporClienteOrden);
        ClienteBusca.setText("");
}//GEN-LAST:event_BotonReporteClienteMostrarTodoActionPerformed

    private void ClienteBuscaKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_ClienteBuscaKeyTyped
        // TODO add your handling code here:
        CargarTablaClientes( ClienteBusca.getText(), ReporClientePor, ReporClienteOrden);
}//GEN-LAST:event_ClienteBuscaKeyTyped

    private void ClientePorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ClientePorActionPerformed
        // TODO add your handling code here:
        String seleccion = ClientePor.getSelectedItem().toString();
        if(seleccion.compareTo("Nombres")==0)
            ReporClientePor="nombres";
        else if(seleccion.compareTo("DNI/RUC")==0)
            ReporClientePor="dniRuc";
}//GEN-LAST:event_ClientePorActionPerformed

    private void ClienterOrdenarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ClienterOrdenarActionPerformed

        String seleccion = TrabajadorOrdenar.getSelectedItem().toString();
        if(seleccion.compareTo("Nombres")==0)
            ReporClienteOrden="nombres";
        else if(seleccion.compareTo("DNI/RUC")==0)
            ReporClienteOrden="dniRuc";
        else if(seleccion.compareTo("Nacimiento")==0)
            ReporClienteOrden="fechaNac";

        System.out.println("Se ha escogido: "+seleccion);
        CargarTablaClientes(ClienteBusca.getText(), ReporClientePor, ReporClienteOrden);
}//GEN-LAST:event_ClienterOrdenarActionPerformed

    private void TablaReporteProveedoresMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_TablaReporteProveedoresMouseClicked
        // TODO add your handling code here:
}//GEN-LAST:event_TablaReporteProveedoresMouseClicked

    private void BotonReporteProveedoresImprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonReporteProveedoresImprimirActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_BotonReporteProveedoresImprimirActionPerformed

    private void BotonReporteProveedoresMostrarTodoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonReporteProveedoresMostrarTodoActionPerformed
        // TODO add your handling code here:
        CargarTablaProveedores("","",ReporProveedorOrden);
        ProveedorBusca.setText("");
}//GEN-LAST:event_BotonReporteProveedoresMostrarTodoActionPerformed

    private void ProveedorBuscaKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_ProveedorBuscaKeyTyped
        // TODO add your handling code here:
        CargarTablaProveedores( ProveedorBusca.getText(), ReporProveedorPor, ReporProveedorOrden);
}//GEN-LAST:event_ProveedorBuscaKeyTyped

    private void ProveedorPorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProveedorPorActionPerformed
        // TODO add your handling code here:
        String seleccion = ProveedorPor.getSelectedItem().toString();
        if(seleccion.compareTo("Nombres")==0)
            ReporProveedorPor="nombres";
        else if(seleccion.compareTo("RUC")==0)
            ReporProveedorPor="dniRuc";
}//GEN-LAST:event_ProveedorPorActionPerformed

    private void ProveedorOrdenarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProveedorOrdenarActionPerformed

        String seleccion = TrabajadorOrdenar.getSelectedItem().toString();
        if(seleccion.compareTo("Nombres")==0)
            ReporProveedorOrden="nombres";
        else if(seleccion.compareTo("RUC")==0)
            ReporProveedorOrden="dniRuc";

        System.out.println("Se ha escogido: "+seleccion);
        CargarTablaProveedores(ProveedorBusca.getText(), ReporProveedorPor, ReporProveedorOrden);
}//GEN-LAST:event_ProveedorOrdenarActionPerformed

    private void BotonReporteTrabajadoresImprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonReporteTrabajadoresImprimirActionPerformed
        // Aqui la funcion Imprimir
        Vector v= new Vector();
        v.add("BUSCAR");
        v.add(TrabajadorBusca.getText());
        v.add("POR");
        if(ReporTrabajadorPor.compareTo("dniRuc")==0)
            v.add("dni_ruc");
        else
            v.add("nombres");
        v.add("ORDENAR");
        if(ReporTrabajadorOrden.compareTo("dniRuc")==0)
            v.add("ORDER BY dni_ruc");
        else
            v.add("ORDER BY "+ReporTrabajadorOrden);
        Reportes jasper= new Reportes("reporteTrabajadores.jasper", v);
        jasper.mostrarReporte();
}//GEN-LAST:event_BotonReporteTrabajadoresImprimirActionPerformed

    private void BotonReporteTrabajadoresMostrarTodoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonReporteTrabajadoresMostrarTodoActionPerformed
        // TODO add your handling code here:
        CargarTablaTrabajadores("","",ReporTrabajadorOrden);
        TrabajadorBusca.setText("");
}//GEN-LAST:event_BotonReporteTrabajadoresMostrarTodoActionPerformed

    private void TrabajadorBuscaKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_TrabajadorBuscaKeyTyped

        CargarTablaTrabajadores( TrabajadorBusca.getText(), ReporTrabajadorPor, ReporTrabajadorOrden);
}//GEN-LAST:event_TrabajadorBuscaKeyTyped

    private void TrabajadorPorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TrabajadorPorActionPerformed
        // TODO add your handling code here:
        String seleccion = TrabajadorPor.getSelectedItem().toString();
        if(seleccion.compareTo("Nombres")==0)
            ReporTrabajadorPor="nombres";
        else if(seleccion.compareTo("DNI")==0)
            ReporTrabajadorPor="dniRuc";
}//GEN-LAST:event_TrabajadorPorActionPerformed

    private void TrabajadorOrdenarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TrabajadorOrdenarActionPerformed
        // TODO add your handling code here:
        //String seleccion=evt.;
        String seleccion = TrabajadorOrdenar.getSelectedItem().toString();
        if(seleccion.compareTo("Nombres")==0)
            ReporTrabajadorOrden="nombres";
        else if(seleccion.compareTo("DNI")==0)
            ReporTrabajadorOrden="dniRuc";
        else if(seleccion.compareTo("Nacimiento")==0)
            ReporTrabajadorOrden="fechaNac";
        else if(seleccion.compareTo("Fecha de Ingreso")==0)
            ReporTrabajadorOrden="fechaIngreso";
        System.out.println("Se ha escogido: "+seleccion);
        CargarTablaTrabajadores(TrabajadorBusca.getText(), ReporTrabajadorPor, ReporTrabajadorOrden);
}//GEN-LAST:event_TrabajadorOrdenarActionPerformed

    private void TablaReporteTrabajadoresMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_TablaReporteTrabajadoresMouseClicked
        // TODO add your handling code here:
        if(evt.getClickCount()==2) {
            System.out.println("Hemos dado doble click");
        }
}//GEN-LAST:event_TablaReporteTrabajadoresMouseClicked

    private void GVBotonVerTodosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_GVBotonVerTodosActionPerformed

        String seleccion = PestaniaGestionVenta.getTitleAt(PestaniaGestionVenta.getSelectedIndex());
        if(seleccion.compareTo("Datos de Pedido")==0) {
            SubPanelDatosCliente.setVisible(false);    //ocultar
            SubPanelDatosComprobante.setVisible(true);     //mostrar
        } else if(seleccion.compareTo("Linea Solicitud")==0) {
            GVlpv1.setVisible(false);    //ocultar
            //GVlpv2.setVisible(true);     //mostrar
        }
        if(seleccion.compareTo("Tarea")==0) {
            GVt1.setVisible(false);  // mostrar
            GVt2.setVisible(true); // ocultar
        } else if(seleccion.compareTo("Linea Tarea")==0) {
            GVlt1.setVisible(false);  // mostrar
            GVlt2.setVisible(true); // ocultar
        }
}//GEN-LAST:event_GVBotonVerTodosActionPerformed

    private void GVBotonNuevoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_GVBotonNuevoActionPerformed
        // TODO add your handling code here:
        String seleccion = PestaniaGestionVenta.getTitleAt(PestaniaGestionVenta.getSelectedIndex());
        if(seleccion.compareTo("Datos de Pedido")==0) {
            SubPanelDatosCliente.setVisible(true);  // mostrar
            SubPanelDatosComprobante.setVisible(false); // ocultar
        } else if(seleccion.compareTo("Linea Solicitud")==0) {
            GVlpv1.setVisible(true);  // mostrar
            //GVlpv2.setVisible(false); // ocultar
        }
        if(seleccion.compareTo("Tarea")==0) {
            GVt1.setVisible(true);  // mostrar
            GVt2.setVisible(false); // ocultar
        } else if(seleccion.compareTo("Linea Tarea")==0) {
            GVlt1.setVisible(true);  // mostrar
            GVlt2.setVisible(false); // ocultar
        }
}//GEN-LAST:event_GVBotonNuevoActionPerformed

    private void btnModificarProductoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnModificarProductoActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_btnModificarProductoActionPerformed

    private void checkVentaSucursalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkVentaSucursalActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_checkVentaSucursalActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        // TODO add your handling code here:
        new BuscarEmpleado(this,true).setVisible(true);
}//GEN-LAST:event_jButton4ActionPerformed

    private void txtTotalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtTotalActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtTotalActionPerformed

    private void btnAgregarServicioImpresionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgregarServicioImpresionActionPerformed
        // TODO add your handling code here:
        ProductoVentaImplementsService nuevoProductoService = new ProductoVentaImplementsService(); //Service de Producto Venta (padre)
        nuevoProductoService.setEntityManagerFactory(emf);
        FidServicioDefinidoImpresion nuevoProductoServImpresion = new FidServicioDefinidoImpresion();//Objeto donde se guardaran los datos de
                                                                                                     //Servicio Definido Impresion
        //Recuperacion objeto Bobina
        int indiceBobina = this.cboBobinaVolumenImpresion.getSelectedIndex();
        int idBobina = (Integer)this.indicesCboBobinaServicioImpresion.get( indiceBobina );
        BobinaInterfazService sbobina = new BobinaImplementsService();
        sbobina.setEntityManagerFactory(emf);
        FidBobina bobina = sbobina.buscarBobina(idBobina);

        //Recupracion de objeto Dimension Foto
        int indiceDimensionFoto = this.cboDimensionFotoImpresion.getSelectedIndex();
        int idDimensionFoto = (Integer)this.indicesCboDimensionFoto.get( indiceDimensionFoto );
        DimensionFotoInterfazService sdimension = new DimensionFotoImplementsService();
        sdimension.setEntityManagerFactory(emf);
        FidDimensionFoto dimensionFoto = sdimension.buscarDimensionFoto(idDimensionFoto);

        //Recuperacion de objeto Tipo Cliente
        int indiceTipoCliente = this.cboTipoClienteImpresion.getSelectedIndex();
        int idTipoCliente = (Integer)this.indicesCboTipoCliente.get( indiceTipoCliente );
        TipoClienteInterfazService stipoCliente = new TipoClienteImplementsService();
        stipoCliente.setEntityManagerFactory(emf);
        FidTipoCliente tipoCliente = stipoCliente.buscarTipoCliente(idTipoCliente);

        //Recuperacion de objeto Complejidad Impresion
        int indiceComplejidadImpresion = this.cboComplejidadImpresion.getSelectedIndex();
        int idComplejidadImpresion = (Integer)this.indicesCboComplejidadImpresion.get( indiceComplejidadImpresion );
        ComplejidadImpresionInterfazService scomplejidadImpresion = new ComplejidadImpresionImplementsService();
        scomplejidadImpresion.setEntityManagerFactory(emf);
        FidComplejidadImpresion complejidadImpresion = scomplejidadImpresion.buscarComplejidadImpresion(idComplejidadImpresion);

        //Inclusion de objetos en el producto venta
        nuevoProductoServImpresion.setFidBobinaId(bobina);
        nuevoProductoServImpresion.setFidDimensionFotoId(dimensionFoto);
        nuevoProductoServImpresion.setFidTipoClienteId(tipoCliente);
        nuevoProductoServImpresion.setFidComplejidadImpresionId(complejidadImpresion);
        nuevoProductoServImpresion.setOfertar(checkIncluirEnOfertasImpresion.isSelected());
        nuevoProductoServImpresion.setPrecio( Double.parseDouble(txtPrecioUnitarioServicioImpresion.getText()) );
        nuevoProductoServImpresion.setCreatedAt( Fecha.getDate()  );
        nuevoProductoServImpresion.setUpdatedAt( Fecha.getDate() );        
        
        //Guardamos en la base de datos        
        boolean estaGuardado = nuevoProductoService.registrarProducto(nuevoProductoServImpresion);
        if( estaGuardado ) {
            JOptionPane.showMessageDialog(null,"Servicio de Impresión guardado satisfactoriamente", "Registro de servicio", JOptionPane.INFORMATION_MESSAGE  );
        } else {
            JOptionPane.showMessageDialog(null,"El servicio de Impresión no ha podido ser registrado por el sistema. Inténtelo de nuevo o consulte con su proveedor.", "Registro de servicio", JOptionPane.ERROR_MESSAGE );
        }        
    }//GEN-LAST:event_btnAgregarServicioImpresionActionPerformed

    private void btnAgregarServicioEdicionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgregarServicioEdicionActionPerformed
        // TODO add your handling code here:
        ProductoVentaImplementsService nuevoProductoService = new ProductoVentaImplementsService(); //Service de Producto Venta (padre)
        nuevoProductoService.setEntityManagerFactory(emf);
        FidServicioDefinidoEdicion nuevoProductoServEdicion = new FidServicioDefinidoEdicion();//Objeto donde se guardaran los datos de

        //Recuperacion objeto Tipo de Edicion
        int indiceTipoEdicion = this.cboTipoEdicion.getSelectedIndex();
        int idTipoEdicion = (Integer)this.indicesCboTipoEdicion.get( indiceTipoEdicion );
        TipoEdicionInterfazService stipoEdicion = new TipoEdicionImplementsService();
        stipoEdicion.setEntityManagerFactory(emf);
        FidTipoEdicion tipoEdicion = stipoEdicion.buscarTipoEdicion(idTipoEdicion);

        //Recuperacion de objeto Complejidad Edicion
        int indiceComplejidadEdicion = this.cboComplejidadEdicion.getSelectedIndex();
        int idComplejidadEdicion = (Integer)this.indicesCboComplejidadEdicion.get( indiceComplejidadEdicion );
        ComplejidadEdicionInterfazService scomplejidadEdicion = new ComplejidadEdicionImplementsService();
        scomplejidadEdicion.setEntityManagerFactory(emf);
        FidComplejidadEdicion complejidadEdicion = scomplejidadEdicion.buscarComplejidadEdicion(idComplejidadEdicion);

        //Recupracion de objeto Dimension Foto
        int indiceDimensionFoto = this.cboDimensionFotoEdicion.getSelectedIndex();
        int idDimensionFoto = (Integer)this.indicesCboDimensionFoto.get( indiceDimensionFoto );
        DimensionFotoInterfazService sdimension = new DimensionFotoImplementsService();
        sdimension.setEntityManagerFactory(emf);
        FidDimensionFoto dimensionFoto = sdimension.buscarDimensionFoto(idDimensionFoto);

        //Recuperacion de objeto Tipo Cliente
        int indiceTipoCliente = this.cboTipoClienteEdicion.getSelectedIndex();
        int idTipoCliente = (Integer)this.indicesCboTipoCliente.get( indiceTipoCliente );
        TipoClienteInterfazService stipoCliente = new TipoClienteImplementsService();
        stipoCliente.setEntityManagerFactory(emf);
        FidTipoCliente tipoCliente = stipoCliente.buscarTipoCliente(idTipoCliente);

        //Inclusion de objetos en el producto venta
        nuevoProductoServEdicion.setFidTipoEdicionId(tipoEdicion);
        nuevoProductoServEdicion.setFidComplejidadEdicionId(complejidadEdicion);
        nuevoProductoServEdicion.setFidDimensionFotoId(dimensionFoto);
        nuevoProductoServEdicion.setFidTipoClienteId(tipoCliente);
        nuevoProductoServEdicion.setOfertar(checkIncluirEnOfertasEdicion.isSelected());
        nuevoProductoServEdicion.setPrecio( Double.parseDouble(txtPrecioUnitarioServicioEdicion.getText()) );
        nuevoProductoServEdicion.setCreatedAt( Fecha.getDate()  );
        nuevoProductoServEdicion.setUpdatedAt( Fecha.getDate() );

        //Guardamos en la base de datos
        boolean estaGuardado = nuevoProductoService.registrarProducto(nuevoProductoServEdicion);
        if( estaGuardado ) {
            JOptionPane.showMessageDialog(null,"Servicio de Edición guardado satisfactoriamente", "Registro de servicio", JOptionPane.INFORMATION_MESSAGE  );
        } else {
            JOptionPane.showMessageDialog(null,"El servicio de Edición no ha podido ser registrado por el sistema. Inténtelo de nuevo o consulte con su proveedor.", "Registro de servicio", JOptionPane.ERROR_MESSAGE );
        }
    }//GEN-LAST:event_btnAgregarServicioEdicionActionPerformed

    private void btnAgregarProductoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgregarProductoActionPerformed
        // TODO add your handling code here:
        /*JFrame frame = new JFrame("JColorChooser Sample Popup");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.add(PanelNuevoPedidoVenta);
        //frame.setSize(300, 100);
        frame.setVisible(true);*/
        PopupAgregarProducto frame = new PopupAgregarProducto();
        frame.setDefaultCloseOperation( JFrame.HIDE_ON_CLOSE  );
        frame.setEmf(emf);
        
        //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        //frame.add(PanelNuevoPedidoVenta);
        //frame.setSize(300, 100);
        frame.setVisible(true);
    }//GEN-LAST:event_btnAgregarProductoActionPerformed


    public void CargarTablaTrabajadores(String buscar, String valorKey, String orden)
    {
        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");
        long tiempo=0;
        java.sql.Date fecha=null;
        TrabajadorInterfazService frlservice = new TrabajadorImplementsService();
        frlservice.setEntityManagerFactory(emf);
        
        List<FidTrabajador> lst = frlservice.listarTrabajadores(valorKey,buscar,true,0,0,orden);
        
        for(int i=0; i<lst.size(); i++)
            System.out.println("trabajador = "+((FidTrabajador)lst.get(i)).getNombres());
        FidTrabajador ft;
        int cant= lst.size();

        ModeloTabla.canEdit = new boolean [] {
            false, false, false, false, false, false, false, false};
        ModeloTabla modeloTabla= new ModeloTabla();

        if(cant>0){
            modeloTabla.addColumn("ID");
            modeloTabla.addColumn("Nombre");
            modeloTabla.addColumn("DNI");
            modeloTabla.addColumn("Email");            
            modeloTabla.addColumn("Dirección");
            modeloTabla.addColumn("Nacimiento");            
            modeloTabla.addColumn("Teléfono");
            modeloTabla.addColumn("Usuario");
            modeloTabla.addColumn("Ingreso");
            
            for ( int i=0; i<cant; i++){
                ft = new FidTrabajador();
                Object[] fila = new Object[10];
                ft = (FidTrabajador)lst.get(i);

                fila[0] = ft.getId();
                fila[1] = ft.getNombres();
                fila[2] = ft.getDniRuc();
                fila[3] = ft.getEmail();
                fila[4] = ft.getDireccion();
                fila[5] = ModeloTabla.retornarFecha(ft.getFechaNac());
                fila[6] = ft.getTelefono();
                fila[7] = ft.getUsuario();
                fila[8] = ModeloTabla.retornarFechaWithTime(ft.getFechaIngreso());
                modeloTabla.addRow(fila);
            }
        }
        else
        {
            Object[] obj={null,null,null,null};
            modeloTabla.addColumn("ID");
            modeloTabla.addColumn("Nombre");
            modeloTabla.addColumn("DNI");
            modeloTabla.addColumn("Email");
            modeloTabla.addColumn("Dirección");
            modeloTabla.addColumn("Nacimiento");            
            modeloTabla.addColumn("Teléfono");
            modeloTabla.addColumn("Usuario");
            modeloTabla.addColumn("Ingreso", obj);
        }
        TablaReporteTrabajadores.setModel(modeloTabla);
        // Seccion para Configurar Visualizacion de Tabla
        TableColumnModel tcm = TablaReporteTrabajadores.getColumnModel();
        // Se pide la columna por su número, empezando en cero.
        //TableColumn columnaABorrar = tcm.getColumn(0);
        TablaReporteTrabajadores.removeColumn (tcm.getColumn(0));  // oculta columna de tabla
        tcm.getColumn(0).setPreferredWidth(200);
        tcm.getColumn(1).setPreferredWidth(100);
        tcm.getColumn(2).setPreferredWidth(150);
        tcm.getColumn(3).setPreferredWidth(200);
        tcm.getColumn(4).setPreferredWidth(80);
        tcm.getColumn(6).setPreferredWidth(80);
        tcm.getColumn(7).setPreferredWidth(80);        
    }

    public void CargarTablaClientes(String buscar, String valorKey, String orden)
    {
        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");
        long tiempo=0;
        java.sql.Date fecha=null;
        ClienteInterfazService frlservice = new ClienteImplementsService();

        frlservice.setEntityManagerFactory(emf);

        List<FidCliente> lst = frlservice.listarClientes(valorKey,buscar,true,0,0,orden);

        for(int i=0; i<lst.size(); i++)
            System.out.println("cliente = "+((FidCliente)lst.get(i)).getNombres());
        FidCliente ft;
        int cant= lst.size();

        ModeloTabla.canEdit = new boolean [] {
            false, false, false, false, false, false, false, false};
        ModeloTabla modeloTabla= new ModeloTabla();

        if(cant>0){
            modeloTabla.addColumn("ID");
            modeloTabla.addColumn("Nombre");
            modeloTabla.addColumn("DNI/RUC");
            modeloTabla.addColumn("Email");
            modeloTabla.addColumn("Dirección");
            modeloTabla.addColumn("Nacimiento");
            modeloTabla.addColumn("Teléfono");
            modeloTabla.addColumn("Tipo Cliente");
            

            for ( int i=0; i<cant; i++){
                ft = new FidCliente();
                Object[] fila = new Object[10];
                ft = (FidCliente)lst.get(i);

                fila[0] = ft.getId();
                fila[1] = ft.getNombres();
                fila[2] = ft.getDniRuc();
                fila[3] = ft.getEmail();
                fila[4] = ft.getDireccion();
                fila[5] = ModeloTabla.retornarFecha(ft.getFechaNac());
                fila[6] = ft.getTelefono();
                fila[7] = ft.getFidTipoClienteId().getNombre();
                modeloTabla.addRow(fila);
            }
        }
        else
        {
            Object[] obj={null,null,null,null};
            modeloTabla.addColumn("ID");
            modeloTabla.addColumn("Nombre");
            modeloTabla.addColumn("DNI/RUC");
            modeloTabla.addColumn("Email");
            modeloTabla.addColumn("Dirección");
            modeloTabla.addColumn("Nacimiento");
            modeloTabla.addColumn("Teléfono");
            modeloTabla.addColumn("Tipo Cliente", obj);
        }
        TablaReporteClientes.setModel(modeloTabla);
        // Seccion para Configurar Visualizacion de Tabla
        TableColumnModel tcm = TablaReporteClientes.getColumnModel();
        // Se pide la columna por su número, empezando en cero.
        //TableColumn columnaABorrar = tcm.getColumn(0);
        TablaReporteClientes.removeColumn (tcm.getColumn(0));  // oculta columna de tabla
        tcm.getColumn(0).setPreferredWidth(200);
        tcm.getColumn(1).setPreferredWidth(100);
        tcm.getColumn(2).setPreferredWidth(150);
        tcm.getColumn(3).setPreferredWidth(200);
    }


    public void CargarTablaProveedores(String buscar, String valorKey, String orden)
    {
        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");
        long tiempo=0;
        java.sql.Date fecha=null;
        ProveedorInterfazService frlservice = new ProveedorImplementsService();

        frlservice.setEntityManagerFactory(emf);

        List<FidProveedor> lst = frlservice.listarProveedores(valorKey,buscar,true,0,0,orden);

        for(int i=0; i<lst.size(); i++)
            System.out.println("cliente = "+((FidProveedor)lst.get(i)).getNombres());
        FidProveedor ft;
        int cant= lst.size();

        ModeloTabla.canEdit = new boolean [] {
            false, false, false, false, false, false, false, false};
        ModeloTabla modeloTabla= new ModeloTabla();

        if(cant>0){
            modeloTabla.addColumn("ID");
            modeloTabla.addColumn("Nombre");
            modeloTabla.addColumn("RUC");
            modeloTabla.addColumn("Email");
            modeloTabla.addColumn("Dirección");
            modeloTabla.addColumn("Teléfono");           

            for ( int i=0; i<cant; i++){
                ft = new FidProveedor();
                Object[] fila = new Object[10];
                ft = (FidProveedor)lst.get(i);

                fila[0] = ft.getId();
                fila[1] = ft.getNombres();
                fila[2] = ft.getDniRuc();
                fila[3] = ft.getEmail();
                fila[4] = ft.getDireccion();
                fila[5] = ft.getTelefono();
                modeloTabla.addRow(fila);
            }
        }
        else
        {
            Object[] obj={null,null,null,null};
            modeloTabla.addColumn("ID");
            modeloTabla.addColumn("Nombre");
            modeloTabla.addColumn("RUC");
            modeloTabla.addColumn("Email");
            modeloTabla.addColumn("Dirección");
            modeloTabla.addColumn("Teléfono", obj);
            
        }
        TablaReporteProveedores.setModel(modeloTabla);
        // Seccion para Configurar Visualizacion de Tabla
        TableColumnModel tcm = TablaReporteProveedores.getColumnModel();
        // Se pide la columna por su número, empezando en cero.
        //TableColumn columnaABorrar = tcm.getColumn(0);
        TablaReporteProveedores.removeColumn (tcm.getColumn(0));  // oculta columna de tabla
        tcm.getColumn(0).setPreferredWidth(200);
        tcm.getColumn(1).setPreferredWidth(100);
        tcm.getColumn(2).setPreferredWidth(150);
        tcm.getColumn(3).setPreferredWidth(200);
        tcm.getColumn(4).setPreferredWidth(100);
    }
    
    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {        
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new PanelPrincipal().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BotonReporteClienteMostrarTodo;
    private javax.swing.JButton BotonReporteClientesImprimir;
    private javax.swing.JButton BotonReporteProveedoresImprimir;
    private javax.swing.JButton BotonReporteProveedoresMostrarTodo;
    private javax.swing.JButton BotonReporteTrabajadoresImprimir;
    private javax.swing.JButton BotonReporteTrabajadoresMostrarTodo;
    private javax.swing.JTextField ClienteBusca;
    private javax.swing.JComboBox ClientePor;
    private javax.swing.JComboBox ClienterOrdenar;
    private javax.swing.JButton GVBotonBuscar;
    private javax.swing.JButton GVBotonEliminar;
    private javax.swing.JButton GVBotonNuevo;
    private javax.swing.JButton GVBotonVerTodos;
    private javax.swing.JPanel GVlpv;
    private javax.swing.JScrollPane GVlpv1;
    private javax.swing.JPanel GVlt;
    private javax.swing.JPanel GVlt1;
    private javax.swing.JPanel GVlt2;
    private javax.swing.JPanel GVpedidoVenta;
    private javax.swing.JPanel GVt;
    private javax.swing.JPanel GVt1;
    private javax.swing.JPanel GVt2;
    private javax.swing.JMenu MenuAdminDatos;
    private javax.swing.JMenuItem MenuAdminModCliente;
    private javax.swing.JMenuItem MenuAdminModProveedor;
    private javax.swing.JMenuItem MenuAdminModiTrab;
    private javax.swing.JMenuItem MenuAdminRegCliente;
    private javax.swing.JMenuItem MenuAdminRegProveedor;
    private javax.swing.JMenuItem MenuAdminRegRolTrabajador;
    private javax.swing.JMenuItem MenuAdminRegTipoCliente;
    private javax.swing.JMenuItem MenuAdminRegTrabajador;
    private javax.swing.JMenu MenuAdminRegistro;
    private javax.swing.JTree MenuLeft;
    private javax.swing.JPanel PanelContenedor;
    private javax.swing.JPanel PanelGestionReportes;
    private javax.swing.JPanel PanelGestionVenta;
    private javax.swing.JPanel PanelNuevoPedidoVenta;
    private javax.swing.JPanel PanelNuevoServicioEdicion;
    private javax.swing.JPanel PanelNuevoServicioImpresion;
    private javax.swing.JPanel PanelReporteClientes;
    private javax.swing.JPanel PanelReporteProveedores;
    private javax.swing.JPanel PanelReporteTrabajadores;
    private javax.swing.JPanel PanelServicioEdicionRegistrado;
    private javax.swing.JPanel PanelServicioImpresionRegistrado;
    private javax.swing.JTabbedPane PestaniaGestionVenta;
    private javax.swing.JTabbedPane PestaniaReportes;
    private javax.swing.JSplitPane Principal;
    private javax.swing.JTextField ProveedorBusca;
    private javax.swing.JComboBox ProveedorOrdenar;
    private javax.swing.JComboBox ProveedorPor;
    private javax.swing.JPanel SubPanelDatosCliente;
    private javax.swing.JPanel SubPanelDatosComprobante;
    private javax.swing.JPanel SubPanelDatosLineaPedido;
    private javax.swing.JPanel SubPanelPagoPedido;
    private javax.swing.JPanel SubPanelRecursosInicialesEdicion;
    private javax.swing.JPanel SubPanelRecursosInicialesImpresion;
    private javax.swing.JPanel SubPanelReporteServiciosEdicion;
    private javax.swing.JPanel SubPanelReporteServiciosImpresion;
    private javax.swing.JPanel SubPanelServicioDirigido;
    private javax.swing.JPanel SubPanelServicioDirigidoEdicion;
    private javax.swing.JTable TablaReporteClientes;
    private javax.swing.JTable TablaReporteProveedores;
    private javax.swing.JTable TablaReporteTrabajadores;
    private javax.swing.JTextField TrabajadorBusca;
    private javax.swing.JComboBox TrabajadorOrdenar;
    private javax.swing.JComboBox TrabajadorPor;
    private javax.swing.JMenuItem aboutMenuItem;
    private javax.swing.JButton btnAgregarProducto;
    private javax.swing.JButton btnAgregarServicioEdicion;
    private javax.swing.JButton btnAgregarServicioImpresion;
    private javax.swing.JButton btnEliminarProducto;
    private javax.swing.JButton btnModificarProducto;
    private javax.swing.JComboBox cboBobinaVolumenImpresion;
    private javax.swing.JComboBox cboComplejidadEdicion;
    private javax.swing.JComboBox cboComplejidadImpresion;
    private javax.swing.JComboBox cboDimensionFotoEdicion;
    private javax.swing.JComboBox cboDimensionFotoImpresion;
    private javax.swing.JComboBox cboTipoClienteEdicion;
    private javax.swing.JComboBox cboTipoClienteImpresion;
    private javax.swing.JComboBox cboTipoComprobante;
    private javax.swing.JComboBox cboTipoEdicion;
    private javax.swing.JComboBox cboUsuario;
    private javax.swing.JCheckBox checkIncluirEnOfertasEdicion;
    private javax.swing.JCheckBox checkIncluirEnOfertasImpresion;
    private javax.swing.JCheckBox checkVentaSucursal;
    private javax.swing.JMenuItem contentMenuItem;
    private javax.swing.JDesktopPane desktopPane;
    private javax.swing.JMenuItem exitMenuItem;
    private javax.swing.JMenu fileMenu;
    private javax.swing.JMenu helpMenu;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton6;
    private javax.swing.JComboBox jComboBox3;
    private com.toedter.calendar.JDateChooser jDateChooser1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JMenuItem jMenuItem9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    private javax.swing.JSeparator jSeparator5;
    private javax.swing.JTable jTable2;
    private javax.swing.JTable jTable3;
    private javax.swing.JTable jTable4;
    private javax.swing.JTextField jTextField10;
    private javax.swing.JTextField jTextField11;
    private javax.swing.JTextField jTextField12;
    private javax.swing.JTextField jTextField16;
    private javax.swing.JTextField jTextField17;
    private javax.swing.JTextField jTextField18;
    private javax.swing.JTextField jTextField19;
    private javax.swing.JTextField jTextField20;
    private javax.swing.JTextField jTextField21;
    private javax.swing.JTextField jTextField22;
    private javax.swing.JTextField jTextField23;
    private javax.swing.JTextField jTextField9;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JLabel labelBobinaVolumenImpresion;
    private javax.swing.JLabel labelComplejidadEdicion;
    private javax.swing.JLabel labelComplejidadImpresion;
    private javax.swing.JLabel labelDimensionFoto;
    private javax.swing.JLabel labelDimensionFotoEdicion;
    private javax.swing.JLabel labelFecha;
    private javax.swing.JLabel labelIgv;
    private javax.swing.JLabel labelNombreCliente;
    private javax.swing.JLabel labelNumComprobante;
    private javax.swing.JLabel labelNumDocIdentidad;
    private javax.swing.JLabel labelPrecioUnitarioInd;
    private javax.swing.JLabel labelPrecioUnitarioInd1;
    private javax.swing.JLabel labelPrecioUnitarioServicioEdicion;
    private javax.swing.JLabel labelSubTotal;
    private javax.swing.JLabel labelTipoCliente;
    private javax.swing.JLabel labelTipoClienteEdicion;
    private javax.swing.JLabel labelTipoComprobante;
    private javax.swing.JLabel labelTipoEdicion;
    private javax.swing.JLabel labelTotal;
    private javax.swing.JLabel labelUsuario;
    private javax.swing.JMenuBar menuBar;
    private com.nilo.plaf.nimrod.NimRODTheme nimRODTheme1;
    private com.nilo.plaf.nimrod.NimRODToolBarUI nimRODToolBarUI1;
    private javax.swing.JMenuItem openMenuItem;
    private javax.swing.JPanel pcDatosCliente;
    private javax.swing.JPanel pcDatosComprobante;
    private javax.swing.JPanel pcDatosLineaPedido;
    private javax.swing.JPanel pcPagoPedido;
    private javax.swing.JPanel pcRecursosInicialesEdicion;
    private javax.swing.JPanel pcRecursosInicialesImpresion;
    private javax.swing.JPanel pcReporteServiciosEdicion;
    private javax.swing.JPanel pcReporteServiciosImpresion;
    private javax.swing.JPanel pcServicioDirigido;
    private javax.swing.JPanel pcServicioDirigidoEdicion;
    private javax.swing.JMenuItem saveAsMenuItem;
    private javax.swing.JMenuItem saveMenuItem;
    private javax.swing.JScrollPane scrollTablaProductos;
    private javax.swing.JScrollPane scrollTablaServiciosEdicion;
    private javax.swing.JScrollPane scrollTablaServiciosImpresion;
    private javax.swing.JTable tablaProductosPedidoVenta;
    private javax.swing.JTable tablaServiciosEdicion;
    private javax.swing.JTable tablaServiciosImpresion;
    private javax.swing.JTextField txtFecha;
    private javax.swing.JTextField txtIgv;
    private javax.swing.JTextField txtNombreCliente;
    private javax.swing.JTextField txtNumComprobante;
    private javax.swing.JTextField txtNumDocIdentidad;
    private javax.swing.JTextField txtPrecioUnitarioInd;
    private javax.swing.JTextField txtPrecioUnitarioServicioEdicion;
    private javax.swing.JTextField txtPrecioUnitarioServicioImpresion;
    private javax.swing.JTextField txtSubTotal;
    private javax.swing.JTextField txtTotal;
    // End of variables declaration//GEN-END:variables

}